Class ResourceSizing

java.lang.Object
org.apache.hadoop.yarn.api.records.ResourceSizing

@Public @Unstable public abstract class ResourceSizing extends Object
ResourceSizing contains information for the size of a SchedulingRequest, such as the number of requested allocations and the resources for each allocation.
  • Constructor Details

    • ResourceSizing

      public ResourceSizing()
  • Method Details

    • newInstance

      @Public @Unstable public static ResourceSizing newInstance(Resource resources)
    • newInstance

      @Public @Unstable public static ResourceSizing newInstance(int numAllocations, Resource resources)
    • getNumAllocations

      @Public @Unstable public abstract int getNumAllocations()
    • setNumAllocations

      @Public @Unstable public abstract void setNumAllocations(int numAllocations)
    • getResources

      @Public @Unstable public abstract Resource getResources()
    • setResources

      @Public @Unstable public abstract void setResources(Resource resources)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object