@InterfaceAudience.Private @InterfaceStability.Unstable public static final class AllocateResponse.AllocateResponseBuilder extends Object
AllocateResponse with specific
options.@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder amCommand(AMCommand amCommand)
amCommand of the response.amCommand - amCommand of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setAMCommand(AMCommand)@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder responseId(int responseId)
responseId of the response.responseId - responseId of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setResponseId(int)@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder allocatedContainers(List<Container> allocatedContainers)
allocatedContainers of the response.allocatedContainers - allocatedContainers of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setAllocatedContainers(List)@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder availableResources(Resource availableResources)
availableResources of the response.availableResources - availableResources of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setAvailableResources(Resource)@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder completedContainersStatuses(List<ContainerStatus> completedContainersStatuses)
completedContainersStatuses of the response.completedContainersStatuses - completedContainersStatuses of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setCompletedContainersStatuses(List)@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder updatedNodes(List<NodeReport> updatedNodes)
updatedNodes of the response.updatedNodes - updatedNodes of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setUpdatedNodes(List)@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder numClusterNodes(int numClusterNodes)
numClusterNodes of the response.numClusterNodes - numClusterNodes of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setNumClusterNodes(int)@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder preemptionMessage(PreemptionMessage preemptionMessage)
preemptionMessage of the response.preemptionMessage - preemptionMessage of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setPreemptionMessage(PreemptionMessage)@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder nmTokens(List<NMToken> nmTokens)
nmTokens of the response.nmTokens - nmTokens of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setNMTokens(List)@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder updatedContainers(List<UpdatedContainer> updatedContainers)
updatedContainers of the response.updatedContainers - updatedContainers of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setUpdatedContainers(List)@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder amRmToken(Token amRmToken)
amRmToken of the response.amRmToken - amRmToken of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setAMRMToken(Token)@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder applicationPriority(Priority applicationPriority)
applicationPriority of the response.applicationPriority - applicationPriority of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setApplicationPriority(Priority)@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder collectorInfo(CollectorInfo collectorInfo)
collectorInfo of the response.collectorInfo - collectorInfo of the response which
contains collector address, RM id, version and collector token.AllocateResponse.AllocateResponseBuilderAllocateResponse.setCollectorInfo(CollectorInfo)@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder updateErrors(List<UpdateContainerError> updateErrors)
updateErrors of the response.updateErrors - updateErrors of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setUpdateErrors(List)@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder containersFromPreviousAttempt(List<Container> containersFromPreviousAttempt)
containersFromPreviousAttempt of the response.containersFromPreviousAttempt - containersFromPreviousAttempt of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setContainersFromPreviousAttempts(List)@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse build()
AllocateResponse object.AllocateResponseCopyright © 2008–2022 Apache Software Foundation. All rights reserved.