@Public
@Unstable
public abstract class UpdateContainerRequest
extends java.lang.Object
UpdateContainerRequest represents the request made by an
application to the ResourceManager to update an attribute of a
Container such as its Resource allocation or (@code ExecutionType}
It includes:
ContainerId for the container.Resource capability of the container after the update request
is completed.
ExecutionType of the container after the update request is
completed.
| Constructor | Description |
|---|---|
UpdateContainerRequest() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
abstract Resource |
getCapability() |
Get the
Resource capability of the request. |
abstract ContainerId |
getContainerId() |
Get the
ContainerId of the container. |
abstract ContainerUpdateType |
getContainerUpdateType() |
Get the
ContainerUpdateType of the container. |
abstract int |
getContainerVersion() |
Get the
ContainerId of the container. |
abstract ExecutionType |
getExecutionType() |
Get the target
ExecutionType of the container. |
int |
hashCode() |
|
static UpdateContainerRequest |
newInstance(int version,
ContainerId containerId,
ContainerUpdateType updateType,
Resource targetCapability,
ExecutionType targetExecutionType) |
|
abstract void |
setCapability(Resource capability) |
Set the
Resource capability of the request. |
abstract void |
setContainerId(ContainerId containerId) |
Set the
ContainerId of the container. |
abstract void |
setContainerUpdateType(ContainerUpdateType updateType) |
Set the
ContainerUpdateType of the container. |
abstract void |
setContainerVersion(int containerVersion) |
Set the current version of the container.
|
abstract void |
setExecutionType(ExecutionType executionType) |
Set the target
ExecutionType of the container. |
java.lang.String |
toString() |
@Public @Unstable public static UpdateContainerRequest newInstance(int version, ContainerId containerId, ContainerUpdateType updateType, Resource targetCapability, ExecutionType targetExecutionType)
@Public @Unstable public abstract int getContainerVersion()
ContainerId of the container.ContainerId of the container@Public @Unstable public abstract void setContainerVersion(int containerVersion)
containerVersion - of the container@Public @Unstable public abstract ContainerUpdateType getContainerUpdateType()
ContainerUpdateType of the container.ContainerUpdateType of the container.@Public @Unstable public abstract void setContainerUpdateType(ContainerUpdateType updateType)
ContainerUpdateType of the container.updateType - of the Container@Public @Unstable public abstract ContainerId getContainerId()
ContainerId of the container.ContainerId of the container@Public @Unstable public abstract void setContainerId(ContainerId containerId)
ContainerId of the container.containerId - ContainerId of the container@Public @Unstable public abstract ExecutionType getExecutionType()
ExecutionType of the container.ExecutionType of the container@Public @Unstable public abstract void setExecutionType(ExecutionType executionType)
ExecutionType of the container.executionType - ExecutionType of the container@Public @Unstable public abstract void setCapability(Resource capability)
Resource capability of the request.capability - Resource capability of the request@Public @Unstable public abstract Resource getCapability()
Resource capability of the request.Resource capability of the requestpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.