public static final class NodeAllocationState.AssignmentState extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static NodeAllocationState.AssignmentState |
MASTER
The master assignment.
|
Modifier and Type | Method and Description |
---|---|
NodeAllocationState.AssignmentState |
assign(VirtualNodeID newID)
Create a new assignment, re-assigned to the new node
|
boolean |
equals(Object o) |
VirtualNodeID |
getCurrentNodeID()
The node ID that this assignment is currently on.
|
NodeAllocationPlan.AssignmentPlan |
getOriginalAssignment()
Returns the original assignment associated with this assignment
|
VirtualNodeID |
getOriginalNodeID()
The node ID that this assignment was originally on.
|
int |
getPartitionID()
The partition instance info for this assignment
|
VirtualNodeType |
getType()
Returns the node type
|
int |
hashCode() |
static NodeAllocationState.AssignmentState |
initial(NodeAllocationPlan.AssignmentPlan originalAssignment)
Creates an initial assignment state for the given assignment
|
String |
toString() |
public static final NodeAllocationState.AssignmentState MASTER
public static NodeAllocationState.AssignmentState initial(NodeAllocationPlan.AssignmentPlan originalAssignment)
originalAssignment
- the original assignmentpublic NodeAllocationPlan.AssignmentPlan getOriginalAssignment()
public VirtualNodeID getOriginalNodeID()
public VirtualNodeID getCurrentNodeID()
public final int getPartitionID()
public NodeAllocationState.AssignmentState assign(VirtualNodeID newID)
newID
- the new nodeIDpublic VirtualNodeType getType()
Copyright © 2016 Actian Corporation. All rights reserved.