Class SchedulingRequest.SchedulingRequestBuilder
java.lang.Object
org.apache.hadoop.yarn.api.records.SchedulingRequest.SchedulingRequestBuilder
- Enclosing class:
- SchedulingRequest
@Public
@Unstable
public static final class SchedulingRequest.SchedulingRequestBuilder
extends Object
Class to construct instances of
SchedulingRequest with specific
options.-
Method Summary
Modifier and TypeMethodDescriptionallocationRequestId(long allocationRequestId) Set theallocationRequestIdof the request.allocationTags(Set<String> allocationTags) Set theallocationTagsof the request.build()Return generatedSchedulingRequestobject.executionType(ExecutionTypeRequest executionType) Set theexecutionTypeof the request.placementConstraintExpression(PlacementConstraint placementConstraintExpression) Set theplacementConstraintExpressionof the request.Set thepriorityof the request.resourceSizing(ResourceSizing resourceSizing) Set theexecutionTypeof the request.
-
Method Details
-
allocationRequestId
@Public @Unstable public SchedulingRequest.SchedulingRequestBuilder allocationRequestId(long allocationRequestId) Set theallocationRequestIdof the request.- Parameters:
allocationRequestId-allocationRequestIdof the request- Returns:
SchedulingRequest.SchedulingRequestBuilder- See Also:
-
priority
Set thepriorityof the request.- Parameters:
priority-priorityof the request- Returns:
SchedulingRequest.SchedulingRequestBuilder- See Also:
-
executionType
@Public @Unstable public SchedulingRequest.SchedulingRequestBuilder executionType(ExecutionTypeRequest executionType) Set theexecutionTypeof the request.- Parameters:
executionType-executionTypeof the request- Returns:
SchedulingRequest.SchedulingRequestBuilder- See Also:
-
allocationTags
@Public @Unstable public SchedulingRequest.SchedulingRequestBuilder allocationTags(Set<String> allocationTags) Set theallocationTagsof the request.- Parameters:
allocationTags-allocationsTagsof the request- Returns:
SchedulingRequest.SchedulingRequestBuilder- See Also:
-
resourceSizing
@Public @Unstable public SchedulingRequest.SchedulingRequestBuilder resourceSizing(ResourceSizing resourceSizing) Set theexecutionTypeof the request.- Parameters:
resourceSizing-resourceSizingof the request- Returns:
SchedulingRequest.SchedulingRequestBuilder- See Also:
-
placementConstraintExpression
@Public @Unstable public SchedulingRequest.SchedulingRequestBuilder placementConstraintExpression(PlacementConstraint placementConstraintExpression) Set theplacementConstraintExpressionof the request.- Parameters:
placementConstraintExpression-placementConstraintsof the request- Returns:
SchedulingRequest.SchedulingRequestBuilder- See Also:
-
build
Return generatedSchedulingRequestobject.- Returns:
SchedulingRequest
-