public final class NodeAllocationPlan extends Object implements Serializable
NodeAllocationState
represents the current NodeAllocation.Modifier and Type | Class and Description |
---|---|
static class |
NodeAllocationPlan.AssignmentPlan
Assignment details for a particular node ID.
|
Modifier and Type | Method and Description |
---|---|
static NodeAllocationPlan |
create(String jobMasterNodeId,
ResourceAllocation masterResources,
List<NodeAllocationPlan.AssignmentPlan> assignments,
ResourceAllocation partitionResources,
NodeInformationMapping nodeMapping)
Creates a new node allocation.
|
List<NodeAllocationPlan.AssignmentPlan> |
getAssignments()
Returns a list of assignments in this node allocation.
|
String |
getJobMasterNodeId()
Returns the physical node id of the job master.
|
ResourceAllocation |
getJobMasterResources()
Gets the allocated resources for the job master.
|
NodeInformationMapping |
getNodeMapping()
Returns the node information for all the nodes referenced by this plan.
|
ResourceAllocation |
getPerPartitionResources()
Gets the allocated allocated resources for each partition.
|
NodeAllocationPlan |
subPlan(int maxParallelism)
Returns the effective NodeAllocationPlan, given the specified value of max parallelism.
|
public String getJobMasterNodeId()
public List<NodeAllocationPlan.AssignmentPlan> getAssignments()
NodeAllocationPlan.AssignmentPlan.getPartitionID()
.public NodeInformationMapping getNodeMapping()
public ResourceAllocation getJobMasterResources()
public ResourceAllocation getPerPartitionResources()
public NodeAllocationPlan subPlan(int maxParallelism)
maxParallelism
- the maximum parallelismpublic static NodeAllocationPlan create(String jobMasterNodeId, ResourceAllocation masterResources, List<NodeAllocationPlan.AssignmentPlan> assignments, ResourceAllocation partitionResources, NodeInformationMapping nodeMapping)
jobMasterNodeId
- the node id of the job master. may be null in the pseudo-distributed case.assignments
- the list of assignmentsCopyright © 2021 Actian Corporation. All rights reserved.