public class ResourceCommitRequest<A extends SchedulerApplicationAttempt,N extends SchedulerNode> extends Object
Constructor and Description |
---|
ResourceCommitRequest(List<ContainerAllocationProposal<A,N>> containersToAllocate,
List<ContainerAllocationProposal<A,N>> containersToReserve,
List<SchedulerContainer<A,N>> toReleaseContainers) |
Modifier and Type | Method and Description |
---|---|
boolean |
anythingAllocatedOrReserved() |
List<ContainerAllocationProposal<A,N>> |
getContainersToAllocate() |
List<SchedulerContainer<A,N>> |
getContainersToRelease() |
List<ContainerAllocationProposal<A,N>> |
getContainersToReserve() |
ContainerAllocationProposal<A,N> |
getFirstAllocatedOrReservedContainer() |
org.apache.hadoop.yarn.api.records.Resource |
getTotalAllocatedResource() |
org.apache.hadoop.yarn.api.records.Resource |
getTotalReleasedResource() |
org.apache.hadoop.yarn.api.records.Resource |
getTotalReservedResource() |
String |
toString() |
public ResourceCommitRequest(List<ContainerAllocationProposal<A,N>> containersToAllocate, List<ContainerAllocationProposal<A,N>> containersToReserve, List<SchedulerContainer<A,N>> toReleaseContainers)
public List<ContainerAllocationProposal<A,N>> getContainersToAllocate()
public List<ContainerAllocationProposal<A,N>> getContainersToReserve()
public List<SchedulerContainer<A,N>> getContainersToRelease()
public org.apache.hadoop.yarn.api.records.Resource getTotalAllocatedResource()
public org.apache.hadoop.yarn.api.records.Resource getTotalReservedResource()
public org.apache.hadoop.yarn.api.records.Resource getTotalReleasedResource()
public boolean anythingAllocatedOrReserved()
public ContainerAllocationProposal<A,N> getFirstAllocatedOrReservedContainer()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.