@InterfaceAudience.Public @InterfaceStability.Stable public static final class ResourceRequest.ResourceRequestBuilder extends Object
ResourceRequest with specific
options.| Modifier and Type | Method and Description |
|---|---|
ResourceRequest.ResourceRequestBuilder |
allocationRequestId(long allocationRequestId)
Set the
allocationRequestId of the request. |
ResourceRequest |
build()
Return generated
ResourceRequest object. |
ResourceRequest.ResourceRequestBuilder |
capability(Resource capability)
Set the
capability of the request. |
ResourceRequest.ResourceRequestBuilder |
executionType(ExecutionType executionType)
Set the
executionTypeRequest of the request with 'ensure
execution type' flag set to true. |
ResourceRequest.ResourceRequestBuilder |
executionTypeRequest(ExecutionTypeRequest executionTypeRequest)
Set the
executionTypeRequest of the request. |
ResourceRequest.ResourceRequestBuilder |
nodeLabelExpression(String nodeLabelExpression)
Set the
nodeLabelExpression of the request. |
ResourceRequest.ResourceRequestBuilder |
numContainers(int numContainers)
Set the
numContainers of the request. |
ResourceRequest.ResourceRequestBuilder |
priority(Priority priority)
Set the
priority of the request. |
ResourceRequest.ResourceRequestBuilder |
relaxLocality(boolean relaxLocality)
Set the
relaxLocality of the request. |
ResourceRequest.ResourceRequestBuilder |
resourceName(String resourceName)
Set the
resourceName of the request. |
@InterfaceAudience.Public @InterfaceStability.Stable public ResourceRequest.ResourceRequestBuilder priority(Priority priority)
priority of the request.priority - priority of the requestResourceRequest.ResourceRequestBuilderResourceRequest.setPriority(Priority)@InterfaceAudience.Public @InterfaceStability.Stable public ResourceRequest.ResourceRequestBuilder resourceName(String resourceName)
resourceName of the request.resourceName - resourceName of the requestResourceRequest.ResourceRequestBuilderResourceRequest.setResourceName(String)@InterfaceAudience.Public @InterfaceStability.Stable public ResourceRequest.ResourceRequestBuilder capability(Resource capability)
capability of the request.capability - capability of the requestResourceRequest.ResourceRequestBuilderResourceRequest.setCapability(Resource)@InterfaceAudience.Public @InterfaceStability.Stable public ResourceRequest.ResourceRequestBuilder numContainers(int numContainers)
numContainers of the request.numContainers - numContainers of the requestResourceRequest.ResourceRequestBuilderResourceRequest.setNumContainers(int)@InterfaceAudience.Public @InterfaceStability.Stable public ResourceRequest.ResourceRequestBuilder relaxLocality(boolean relaxLocality)
relaxLocality of the request.relaxLocality - relaxLocality of the requestResourceRequest.ResourceRequestBuilderResourceRequest.setRelaxLocality(boolean)@InterfaceAudience.Public @InterfaceStability.Evolving public ResourceRequest.ResourceRequestBuilder nodeLabelExpression(String nodeLabelExpression)
nodeLabelExpression of the request.nodeLabelExpression - nodeLabelExpression of the requestResourceRequest.ResourceRequestBuilderResourceRequest.setNodeLabelExpression(String)@InterfaceAudience.Public @InterfaceStability.Evolving public ResourceRequest.ResourceRequestBuilder executionTypeRequest(ExecutionTypeRequest executionTypeRequest)
executionTypeRequest of the request.executionTypeRequest - executionTypeRequest of the requestResourceRequest.ResourceRequestBuilderResourceRequest.setExecutionTypeRequest(
ExecutionTypeRequest)@InterfaceAudience.Public @InterfaceStability.Evolving public ResourceRequest.ResourceRequestBuilder executionType(ExecutionType executionType)
executionTypeRequest of the request with 'ensure
execution type' flag set to true.executionType - executionType of the request.ResourceRequest.ResourceRequestBuilderResourceRequest.setExecutionTypeRequest(
ExecutionTypeRequest)@InterfaceAudience.Public @InterfaceStability.Evolving public ResourceRequest.ResourceRequestBuilder allocationRequestId(long allocationRequestId)
allocationRequestId of the request.allocationRequestId - allocationRequestId of the requestResourceRequest.ResourceRequestBuilderResourceRequest.setAllocationRequestId(long)@InterfaceAudience.Public @InterfaceStability.Stable public ResourceRequest build()
ResourceRequest object.ResourceRequestCopyright © 2023 Apache Software Foundation. All rights reserved.