Class OpportunisticContainerAllocator.Allocation

java.lang.Object
org.apache.hadoop.yarn.server.scheduler.OpportunisticContainerAllocator.Allocation
Enclosing class:
OpportunisticContainerAllocator

public static class OpportunisticContainerAllocator.Allocation extends Object
This class encapsulates container and resourceName for an allocation.
  • Constructor Details

    • Allocation

      public Allocation(org.apache.hadoop.yarn.api.records.Container container, String resourceName)
      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

      public String getResourceName()
      Get resource name of the allocation.
      Returns:
      resource name of the allocation.