Class SchedulingRequest
java.lang.Object
org.apache.hadoop.yarn.api.records.SchedulingRequest
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classClass to construct instances ofSchedulingRequestwith specific options. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract longabstract ExecutionTypeRequestabstract PlacementConstraintabstract Priorityabstract ResourceSizingstatic SchedulingRequestnewInstance(long allocationRequestId, Priority priority, ExecutionTypeRequest executionType, Set<String> allocationTags, ResourceSizing resourceSizing, PlacementConstraint placementConstraintExpression) abstract voidsetAllocationRequestId(long allocationRequestId) abstract voidsetAllocationTags(Set<String> allocationTags) abstract voidsetExecutionType(ExecutionTypeRequest executionType) abstract voidsetPlacementConstraint(PlacementConstraint placementConstraint) abstract voidsetPriority(Priority priority) abstract voidsetResourceSizing(ResourceSizing 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
-
getAllocationRequestId
public abstract long getAllocationRequestId() -
setAllocationRequestId
public abstract void setAllocationRequestId(long allocationRequestId) -
getPriority
-
setPriority
-
getExecutionType
-
setExecutionType
-
getAllocationTags
-
setAllocationTags
-
getResourceSizing
-
setResourceSizing
-
getPlacementConstraint
-
setPlacementConstraint
-