Package org.jppf.management
Class ExecutionPolicySelector
java.lang.Object
org.jppf.management.ExecutionPolicySelector
- All Implemented Interfaces:
Serializable,DriverSelector,NodeSelector
Selects nodes based on an
ExecutionPolicy.- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from interface org.jppf.management.DriverSelector
ALL_DRIVERSFields inherited from interface org.jppf.management.NodeSelector
ALL_NODES -
Constructor Summary
ConstructorsConstructorDescriptionInitialize this selector with the specified execution policy. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(JPPFManagementInfo nodeInfo) Determine whether a node is accepted by this selector.Get the execution policy to use to select the nodes.
-
Constructor Details
-
ExecutionPolicySelector
Initialize this selector with the specified execution policy.- Parameters:
policy- the execution policy to use to select the nodes.
-
-
Method Details
-
getPolicy
Get the execution policy to use to select the nodes.- Returns:
- an
ExecutionPolicy.
-
accepts
Description copied from interface:NodeSelectorDetermine whether a node is accepted by this selector.- Specified by:
acceptsin interfaceNodeSelector- Parameters:
nodeInfo- information on the node.- Returns:
trueif the node is accepted,falseotherwise.
-