Class SchedulingRequest

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

@Public @Unstable public abstract class SchedulingRequest extends Object
SchedulingRequest represents a request made by an application to the ResourceManager to obtain an allocation. It is similar to the ResourceRequest. However, it is more complete than the latter, as it allows applications to specify allocation tags (e.g., to express that an allocation belongs to Spark or is an HBase-master), as well as involved PlacementConstraints (e.g., anti-affinity between Spark and HBase allocations). The size specification of the allocation is in ResourceSizing.
  • Constructor Details

    • SchedulingRequest

      public SchedulingRequest()
  • Method Details

    • newInstance

      @Public @Unstable public static SchedulingRequest newInstance(long allocationRequestId, Priority priority, ExecutionTypeRequest executionType, Set<String> allocationTags, ResourceSizing resourceSizing, PlacementConstraint placementConstraintExpression)
    • newBuilder

      @Public @Unstable public static SchedulingRequest.SchedulingRequestBuilder newBuilder()
    • getAllocationRequestId

      public abstract long getAllocationRequestId()
    • setAllocationRequestId

      public abstract void setAllocationRequestId(long allocationRequestId)
    • getPriority

      public abstract Priority getPriority()
    • setPriority

      public abstract void setPriority(Priority priority)
    • getExecutionType

      public abstract ExecutionTypeRequest getExecutionType()
    • setExecutionType

      public abstract void setExecutionType(ExecutionTypeRequest executionType)
    • getAllocationTags

      public abstract Set<String> getAllocationTags()
    • setAllocationTags

      public abstract void setAllocationTags(Set<String> allocationTags)
    • getResourceSizing

      public abstract ResourceSizing getResourceSizing()
    • setResourceSizing

      public abstract void setResourceSizing(ResourceSizing resourceSizing)
    • getPlacementConstraint

      public abstract PlacementConstraint getPlacementConstraint()
    • setPlacementConstraint

      public abstract void setPlacementConstraint(PlacementConstraint placementConstraint)