Class AllocateRequest.AllocateRequestBuilder
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest.AllocateRequestBuilder
- Enclosing class:
- AllocateRequest
Class to construct instances of
AllocateRequest with specific
options.-
Method Summary
Modifier and TypeMethodDescriptionaskList(List<ResourceRequest> askList) Set theaskListof the request.build()Return generatedAllocateRequestobject.progress(float progress) Set theprogressof the request.releaseList(List<ContainerId> releaseList) Set thereleaseListof the request.resourceBlacklistRequest(ResourceBlacklistRequest resourceBlacklistRequest) Set theresourceBlacklistRequestof the request.responseId(int responseId) Set theresponseIdof the request.schedulingRequests(List<SchedulingRequest> schedulingRequests) Set theschedulingRequestsof the request.trackingUrl(String trackingUrl) Set thetrackingUrlof the request.updateRequests(List<UpdateContainerRequest> updateRequests) Set theupdateRequestsof the request.
-
Method Details
-
responseId
Set theresponseIdof the request.- Parameters:
responseId-responseIdof the request- Returns:
AllocateRequest.AllocateRequestBuilder- See Also:
-
progress
Set theprogressof the request.- Parameters:
progress-progressof the request- Returns:
AllocateRequest.AllocateRequestBuilder- See Also:
-
askList
@Public @Stable public AllocateRequest.AllocateRequestBuilder askList(List<ResourceRequest> askList) Set theaskListof the request.- Parameters:
askList-askListof the request- Returns:
AllocateRequest.AllocateRequestBuilder- See Also:
-
releaseList
@Public @Stable public AllocateRequest.AllocateRequestBuilder releaseList(List<ContainerId> releaseList) Set thereleaseListof the request.- Parameters:
releaseList-releaseListof the request- Returns:
AllocateRequest.AllocateRequestBuilder- See Also:
-
resourceBlacklistRequest
@Public @Stable public AllocateRequest.AllocateRequestBuilder resourceBlacklistRequest(ResourceBlacklistRequest resourceBlacklistRequest) Set theresourceBlacklistRequestof the request.- Parameters:
resourceBlacklistRequest-resourceBlacklistRequestof the request- Returns:
AllocateRequest.AllocateRequestBuilder- See Also:
-
updateRequests
@Public @Unstable public AllocateRequest.AllocateRequestBuilder updateRequests(List<UpdateContainerRequest> updateRequests) Set theupdateRequestsof the request.- Parameters:
updateRequests-updateRequestsof the request- Returns:
AllocateRequest.AllocateRequestBuilder- See Also:
-
schedulingRequests
@Public @Unstable public AllocateRequest.AllocateRequestBuilder schedulingRequests(List<SchedulingRequest> schedulingRequests) Set theschedulingRequestsof the request.- Parameters:
schedulingRequests-SchedulingRequestof the request- Returns:
AllocateRequest.AllocateRequestBuilder- See Also:
-
trackingUrl
Set thetrackingUrlof the request.- Parameters:
trackingUrl- new tracking url- Returns:
AllocateRequest.AllocateRequestBuilder- See Also:
-
build
Return generatedAllocateRequestobject.- Returns:
AllocateRequest
-