@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.AllocateResponseBuilder
AllocateResponse.setAMCommand(AMCommand)
@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder responseId(int responseId)
responseId
of the response.responseId
- responseId
of the responseAllocateResponse.AllocateResponseBuilder
AllocateResponse.setResponseId(int)
@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder allocatedContainers(List<Container> allocatedContainers)
allocatedContainers
of the response.allocatedContainers
- allocatedContainers
of the responseAllocateResponse.AllocateResponseBuilder
AllocateResponse.setAllocatedContainers(List)
@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder availableResources(Resource availableResources)
availableResources
of the response.availableResources
- availableResources
of the responseAllocateResponse.AllocateResponseBuilder
AllocateResponse.setAvailableResources(Resource)
@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder completedContainersStatuses(List<ContainerStatus> completedContainersStatuses)
completedContainersStatuses
of the response.completedContainersStatuses
- completedContainersStatuses
of the responseAllocateResponse.AllocateResponseBuilder
AllocateResponse.setCompletedContainersStatuses(List)
@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder updatedNodes(List<NodeReport> updatedNodes)
updatedNodes
of the response.updatedNodes
- updatedNodes
of the responseAllocateResponse.AllocateResponseBuilder
AllocateResponse.setUpdatedNodes(List)
@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder numClusterNodes(int numClusterNodes)
numClusterNodes
of the response.numClusterNodes
- numClusterNodes
of the responseAllocateResponse.AllocateResponseBuilder
AllocateResponse.setNumClusterNodes(int)
@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder preemptionMessage(PreemptionMessage preemptionMessage)
preemptionMessage
of the response.preemptionMessage
- preemptionMessage
of the responseAllocateResponse.AllocateResponseBuilder
AllocateResponse.setPreemptionMessage(PreemptionMessage)
@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder nmTokens(List<NMToken> nmTokens)
nmTokens
of the response.nmTokens
- nmTokens
of the responseAllocateResponse.AllocateResponseBuilder
AllocateResponse.setNMTokens(List)
@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder updatedContainers(List<UpdatedContainer> updatedContainers)
updatedContainers
of the response.updatedContainers
- updatedContainers
of the responseAllocateResponse.AllocateResponseBuilder
AllocateResponse.setUpdatedContainers(List)
@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder amRmToken(Token amRmToken)
amRmToken
of the response.amRmToken
- amRmToken
of the responseAllocateResponse.AllocateResponseBuilder
AllocateResponse.setAMRMToken(Token)
@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder applicationPriority(Priority applicationPriority)
applicationPriority
of the response.applicationPriority
- applicationPriority
of the responseAllocateResponse.AllocateResponseBuilder
AllocateResponse.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.AllocateResponseBuilder
AllocateResponse.setCollectorInfo(CollectorInfo)
@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder updateErrors(List<UpdateContainerError> updateErrors)
updateErrors
of the response.updateErrors
- updateErrors
of the responseAllocateResponse.AllocateResponseBuilder
AllocateResponse.setUpdateErrors(List)
@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse.AllocateResponseBuilder containersFromPreviousAttempt(List<Container> containersFromPreviousAttempt)
containersFromPreviousAttempt
of the response.containersFromPreviousAttempt
- containersFromPreviousAttempt
of the responseAllocateResponse.AllocateResponseBuilder
AllocateResponse.setContainersFromPreviousAttempts(List)
@InterfaceAudience.Private @InterfaceStability.Unstable public AllocateResponse build()
AllocateResponse
object.AllocateResponse
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.