java.lang.Object
com.pervasive.datarush.cal.NodeAllocationPlan.AssignmentPlan
- All Implemented Interfaces:
Serializable
- Enclosing class:
- NodeAllocationPlan
Assignment details for a particular node ID.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NodeAllocationPlan.AssignmentPlanThe master assignment. -
Method Summary
Modifier and TypeMethodDescriptionbooleanforWorker(int partitionID, VirtualNodeID nodeID) Creates an assignment for a worker nodeThe node ID that this assignment was originally on.final intThe partition instance info for this assignmentgetType()Returns the node typeinthashCode()toString()
-
Field Details
-
MASTER
The master assignment. Partition id is always zero.
-
-
Method Details
-
forWorker
Creates an assignment for a worker node- Parameters:
partitionInfo- the partition infonodeID- the node idhostName- the host name- Returns:
- an assignment
-
getNodeID
The node ID that this assignment was originally on.- Returns:
- the node ID that this assignment was originally on.
-
getPartitionID
public final int getPartitionID()The partition instance info for this assignment- Returns:
- the partition instance info for this assignment
-
getType
Returns the node type- Returns:
- the node type
-
equals
-
hashCode
public int hashCode() -
toString
-