Package org.jppf.management
Class UuidSelector
java.lang.Object
org.jppf.management.UuidSelector
- All Implemented Interfaces:
Serializable,DriverSelector,NodeSelector
Selects nodes based on their uuids.
- 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
ConstructorsConstructorDescriptionUuidSelector(String... uuids) Initialize this selector with the specified array of node UUIDs.UuidSelector(Collection<String> uuids) Initialize this selector with the specified list of node UUIDs. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(JPPFManagementInfo nodeInfo) Determine whether a node is accepted by this selector.getUuids()Get the list of uuids of the nodes to select.
-
Constructor Details
-
UuidSelector
Initialize this selector with the specified list of node UUIDs.- Parameters:
uuids- the uuids of the nodes to select.
-
UuidSelector
Initialize this selector with the specified array of node UUIDs.- Parameters:
uuids- the uuids of the nodes to select.
-
-
Method Details
-
getUuids
Get the list of uuids of the nodes to select. This list is immutable.- Returns:
- a collection of uuids as strings.
-
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.
-