@Private
@Unstable
public static final class AllocateResponse.AllocateResponseBuilder
extends java.lang.Object
AllocateResponse with specific
options.| Modifier and Type | Method | Description |
|---|---|---|
AllocateResponse.AllocateResponseBuilder |
allocatedContainers(java.util.List<Container> allocatedContainers) |
Set the
allocatedContainers of the response. |
AllocateResponse.AllocateResponseBuilder |
amCommand(AMCommand amCommand) |
Set the
amCommand of the response. |
AllocateResponse.AllocateResponseBuilder |
amRmToken(Token amRmToken) |
Set the
amRmToken of the response. |
AllocateResponse.AllocateResponseBuilder |
applicationPriority(Priority applicationPriority) |
Set the
applicationPriority of the response. |
AllocateResponse.AllocateResponseBuilder |
availableResources(Resource availableResources) |
Set the
availableResources of the response. |
AllocateResponse |
build() |
Return generated
AllocateResponse object. |
AllocateResponse.AllocateResponseBuilder |
collectorInfo(CollectorInfo collectorInfo) |
Set the
collectorInfo of the response. |
AllocateResponse.AllocateResponseBuilder |
completedContainersStatuses(java.util.List<ContainerStatus> completedContainersStatuses) |
Set the
completedContainersStatuses of the response. |
AllocateResponse.AllocateResponseBuilder |
containersFromPreviousAttempt(java.util.List<Container> containersFromPreviousAttempt) |
Set the
containersFromPreviousAttempt of the response. |
EnhancedHeadroom |
getEnhancedHeadroom() |
|
AllocateResponse.AllocateResponseBuilder |
nmTokens(java.util.List<NMToken> nmTokens) |
Set the
nmTokens of the response. |
AllocateResponse.AllocateResponseBuilder |
numClusterNodes(int numClusterNodes) |
Set the
numClusterNodes of the response. |
AllocateResponse.AllocateResponseBuilder |
preemptionMessage(PreemptionMessage preemptionMessage) |
Set the
preemptionMessage of the response. |
AllocateResponse.AllocateResponseBuilder |
responseId(int responseId) |
Set the
responseId of the response. |
void |
setEnhancedHeadroom(EnhancedHeadroom enhancedHeadroom) |
|
AllocateResponse.AllocateResponseBuilder |
updatedContainers(java.util.List<UpdatedContainer> updatedContainers) |
Set the
updatedContainers of the response. |
AllocateResponse.AllocateResponseBuilder |
updatedNodes(java.util.List<NodeReport> updatedNodes) |
Set the
updatedNodes of the response. |
AllocateResponse.AllocateResponseBuilder |
updateErrors(java.util.List<UpdateContainerError> updateErrors) |
Set the
updateErrors of the response. |
@Private @Unstable public AllocateResponse.AllocateResponseBuilder amCommand(AMCommand amCommand)
amCommand of the response.amCommand - amCommand of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setAMCommand(AMCommand)@Private @Unstable public AllocateResponse.AllocateResponseBuilder responseId(int responseId)
responseId of the response.responseId - responseId of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setResponseId(int)@Private @Unstable public AllocateResponse.AllocateResponseBuilder allocatedContainers(java.util.List<Container> allocatedContainers)
allocatedContainers of the response.allocatedContainers - allocatedContainers of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setAllocatedContainers(List)@Private @Unstable public AllocateResponse.AllocateResponseBuilder availableResources(Resource availableResources)
availableResources of the response.availableResources - availableResources of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setAvailableResources(Resource)@Private @Unstable public AllocateResponse.AllocateResponseBuilder completedContainersStatuses(java.util.List<ContainerStatus> completedContainersStatuses)
completedContainersStatuses of the response.completedContainersStatuses - completedContainersStatuses of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setCompletedContainersStatuses(List)@Private @Unstable public AllocateResponse.AllocateResponseBuilder updatedNodes(java.util.List<NodeReport> updatedNodes)
updatedNodes of the response.updatedNodes - updatedNodes of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setUpdatedNodes(List)@Private @Unstable public AllocateResponse.AllocateResponseBuilder numClusterNodes(int numClusterNodes)
numClusterNodes of the response.numClusterNodes - numClusterNodes of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setNumClusterNodes(int)@Private @Unstable public AllocateResponse.AllocateResponseBuilder preemptionMessage(PreemptionMessage preemptionMessage)
preemptionMessage of the response.preemptionMessage - preemptionMessage of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setPreemptionMessage(PreemptionMessage)@Private @Unstable public AllocateResponse.AllocateResponseBuilder nmTokens(java.util.List<NMToken> nmTokens)
nmTokens of the response.nmTokens - nmTokens of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setNMTokens(List)@Private @Unstable public AllocateResponse.AllocateResponseBuilder updatedContainers(java.util.List<UpdatedContainer> updatedContainers)
updatedContainers of the response.updatedContainers - updatedContainers of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setUpdatedContainers(List)@Private @Unstable public AllocateResponse.AllocateResponseBuilder amRmToken(Token amRmToken)
amRmToken of the response.amRmToken - amRmToken of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setAMRMToken(Token)@Private @Unstable public AllocateResponse.AllocateResponseBuilder applicationPriority(Priority applicationPriority)
applicationPriority of the response.applicationPriority - applicationPriority of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setApplicationPriority(Priority)@Private @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)@Private @Unstable public AllocateResponse.AllocateResponseBuilder updateErrors(java.util.List<UpdateContainerError> updateErrors)
updateErrors of the response.updateErrors - updateErrors of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setUpdateErrors(List)@Private @Unstable public AllocateResponse.AllocateResponseBuilder containersFromPreviousAttempt(java.util.List<Container> containersFromPreviousAttempt)
containersFromPreviousAttempt of the response.containersFromPreviousAttempt - containersFromPreviousAttempt of the responseAllocateResponse.AllocateResponseBuilderAllocateResponse.setContainersFromPreviousAttempts(List)@Public @Unstable public EnhancedHeadroom getEnhancedHeadroom()
@Private @Unstable public void setEnhancedHeadroom(EnhancedHeadroom enhancedHeadroom)
@Private @Unstable public AllocateResponse build()
AllocateResponse object.AllocateResponseCopyright © 2008–2025 Apache Software Foundation. All rights reserved.