- java.lang.Object
-
- com.pervasive.datarush.cal.NodeAllocationPlan.AssignmentPlan
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- NodeAllocationPlan
public static final class NodeAllocationPlan.AssignmentPlan extends Object implements Serializable
Assignment details for a particular node ID.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NodeAllocationPlan.AssignmentPlan
MASTER
The master assignment.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static NodeAllocationPlan.AssignmentPlan
forWorker(int partitionID, VirtualNodeID nodeID)
Creates an assignment for a worker nodeVirtualNodeID
getNodeID()
The node ID that this assignment was originally on.int
getPartitionID()
The partition instance info for this assignmentVirtualNodeType
getType()
Returns the node typeint
hashCode()
String
toString()
-
-
-
Field Detail
-
MASTER
public static final NodeAllocationPlan.AssignmentPlan MASTER
The master assignment. Partition id is always zero.
-
-
Method Detail
-
forWorker
public static NodeAllocationPlan.AssignmentPlan forWorker(int partitionID, VirtualNodeID nodeID)
Creates an assignment for a worker node- Parameters:
partitionInfo
- the partition infonodeID
- the node idhostName
- the host name- Returns:
- an assignment
-
getNodeID
public VirtualNodeID 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
public VirtualNodeType getType()
Returns the node type- Returns:
- the node type
-
-