public final class NodeAllocationState extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
NodeAllocationState.AssignmentState
Assignment details for a particular node ID.
|
Modifier and Type | Method and Description |
---|---|
List<NodeAllocationState.AssignmentState> |
getAssignments()
Returns a list of assignments in this node allocation.
|
Map<String,List<NodeAllocationState.AssignmentState>> |
getGroupedAssignments()
returns assignments, grouped by current physical node id
|
String |
getJobMasterNodeId()
Returns the physical node id of the job master.
|
ResourceAllocation |
getPerPartitionResources()
Gets the per-partition resource allocation.
|
static NodeAllocationState |
initial(NodeAllocationPlan plan)
Creates the initial NodeAllocationState based on the plan.
|
NodeAllocationState |
reallocate(String failedNode)
Utility to re-allocate the work of a failed node to the other nodes in the cluster.
|
public static NodeAllocationState initial(NodeAllocationPlan plan)
plan
- the initial allocation plampublic String getJobMasterNodeId()
public List<NodeAllocationState.AssignmentState> getAssignments()
NodeAllocationState.AssignmentState.getPartitionID()
.public NodeAllocationState reallocate(String failedNode)
failedNode
- the failed nodepublic Map<String,List<NodeAllocationState.AssignmentState>> getGroupedAssignments()
public ResourceAllocation getPerPartitionResources()
Copyright © 2020 Actian Corporation. All rights reserved.