Class DistributedSchedulingAllocateRequestPBImpl
java.lang.Object
org.apache.hadoop.yarn.server.api.protocolrecords.DistributedSchedulingAllocateRequest
org.apache.hadoop.yarn.server.api.protocolrecords.impl.pb.DistributedSchedulingAllocateRequestPBImpl
public class DistributedSchedulingAllocateRequestPBImpl
extends DistributedSchedulingAllocateRequest
Implementation of
DistributedSchedulingAllocateRequest.-
Constructor Summary
ConstructorsConstructorDescriptionDistributedSchedulingAllocateRequestPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto proto) -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.hadoop.yarn.api.records.Container>Get the list of newly allocatedContainerby the Distributed Scheduling component on the NodeManager.org.apache.hadoop.yarn.api.protocolrecords.AllocateRequestGet the underlyingAllocateRequestobject.org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProtogetProto()voidsetAllocatedContainers(List<org.apache.hadoop.yarn.api.records.Container> pContainers) Set the list of newly allocatedContainerby the Distributed Scheduling component on the NodeManager.voidsetAllocateRequest(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest pAllocateRequest) Set the underlyingAllocateRequestobject.
-
Constructor Details
-
DistributedSchedulingAllocateRequestPBImpl
public DistributedSchedulingAllocateRequestPBImpl() -
DistributedSchedulingAllocateRequestPBImpl
public DistributedSchedulingAllocateRequestPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto proto)
-
-
Method Details
-
getAllocateRequest
public org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest getAllocateRequest()Description copied from class:DistributedSchedulingAllocateRequestGet the underlyingAllocateRequestobject.- Specified by:
getAllocateRequestin classDistributedSchedulingAllocateRequest- Returns:
- Allocate request
-
setAllocateRequest
public void setAllocateRequest(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest pAllocateRequest) Description copied from class:DistributedSchedulingAllocateRequestSet the underlyingAllocateRequestobject.- Specified by:
setAllocateRequestin classDistributedSchedulingAllocateRequest- Parameters:
pAllocateRequest- Allocate request
-
getAllocatedContainers
Description copied from class:DistributedSchedulingAllocateRequestGet the list of newly allocatedContainerby the Distributed Scheduling component on the NodeManager.- Specified by:
getAllocatedContainersin classDistributedSchedulingAllocateRequest- Returns:
- list of newly allocated
Container
-
setAllocatedContainers
Description copied from class:DistributedSchedulingAllocateRequestSet the list of newly allocatedContainerby the Distributed Scheduling component on the NodeManager.- Specified by:
setAllocatedContainersin classDistributedSchedulingAllocateRequest- Parameters:
pContainers- list of newly allocatedContainer
-
getProto
public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto getProto()
-