Class DistributedSchedulingAllocateRequest
java.lang.Object
org.apache.hadoop.yarn.server.api.protocolrecords.DistributedSchedulingAllocateRequest
- Direct Known Subclasses:
DistributedSchedulingAllocateRequestPBImpl
Object used by the Application Master when distributed scheduling is enabled,
in order to forward the
AllocateRequest for GUARANTEED containers to
the Resource Manager, and to notify the Resource Manager about the allocation
of OPPORTUNISTIC containers through the Distributed Scheduler.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract List<org.apache.hadoop.yarn.api.records.Container>Get the list of newly allocatedContainerby the Distributed Scheduling component on the NodeManager.abstract org.apache.hadoop.yarn.api.protocolrecords.AllocateRequestGet the underlyingAllocateRequestobject.abstract voidsetAllocatedContainers(List<org.apache.hadoop.yarn.api.records.Container> containers) Set the list of newly allocatedContainerby the Distributed Scheduling component on the NodeManager.abstract voidsetAllocateRequest(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest allocateRequest) Set the underlyingAllocateRequestobject.
-
Constructor Details
-
DistributedSchedulingAllocateRequest
public DistributedSchedulingAllocateRequest()
-
-
Method Details
-
getAllocateRequest
@Public @Evolving public abstract org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest getAllocateRequest()Get the underlyingAllocateRequestobject.- Returns:
- Allocate request
-
setAllocateRequest
@Public @Evolving public abstract void setAllocateRequest(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest allocateRequest) Set the underlyingAllocateRequestobject.- Parameters:
allocateRequest- Allocate request
-
getAllocatedContainers
@Public @Evolving public abstract List<org.apache.hadoop.yarn.api.records.Container> getAllocatedContainers()Get the list of newly allocatedContainerby the Distributed Scheduling component on the NodeManager.- Returns:
- list of newly allocated
Container
-
setAllocatedContainers
@Public @Evolving public abstract void setAllocatedContainers(List<org.apache.hadoop.yarn.api.records.Container> containers) Set the list of newly allocatedContainerby the Distributed Scheduling component on the NodeManager.- Parameters:
containers- list of newly allocatedContainer
-