Class OpportunisticContainerAllocator.Allocation
java.lang.Object
org.apache.hadoop.yarn.server.scheduler.OpportunisticContainerAllocator.Allocation
- Enclosing class:
- OpportunisticContainerAllocator
This class encapsulates container and resourceName for an allocation.
-
Constructor Summary
ConstructorsConstructorDescriptionAllocation(org.apache.hadoop.yarn.api.records.Container container, String resourceName) Creates an instance of Allocation. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.api.records.ContainerGet container of the allocation.Get resource name of the allocation.
-
Constructor Details
-
Allocation
Creates an instance of Allocation.- Parameters:
container- allocated container.resourceName- location where it got allocated.
-
-
Method Details
-
getContainer
public org.apache.hadoop.yarn.api.records.Container getContainer()Get container of the allocation.- Returns:
- container of the allocation.
-
getResourceName
Get resource name of the allocation.- Returns:
- resource name of the allocation.
-