@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class UpdateContainerRequest extends 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 and Description |
---|
UpdateContainerRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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. |
String |
toString() |
@InterfaceAudience.Public @InterfaceStability.Unstable public static UpdateContainerRequest newInstance(int version, ContainerId containerId, ContainerUpdateType updateType, Resource targetCapability, ExecutionType targetExecutionType)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract int getContainerVersion()
ContainerId
of the container.ContainerId
of the container@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setContainerVersion(int containerVersion)
containerVersion
- of the container@InterfaceAudience.Public @InterfaceStability.Unstable public abstract ContainerUpdateType getContainerUpdateType()
ContainerUpdateType
of the container.ContainerUpdateType
of the container.@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setContainerUpdateType(ContainerUpdateType updateType)
ContainerUpdateType
of the container.updateType
- of the Container@InterfaceAudience.Public @InterfaceStability.Unstable public abstract ContainerId getContainerId()
ContainerId
of the container.ContainerId
of the container@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setContainerId(ContainerId containerId)
ContainerId
of the container.containerId
- ContainerId
of the container@InterfaceAudience.Public @InterfaceStability.Unstable public abstract ExecutionType getExecutionType()
ExecutionType
of the container.ExecutionType
of the container@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setExecutionType(ExecutionType executionType)
ExecutionType
of the container.executionType
- ExecutionType
of the container@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setCapability(Resource capability)
Resource
capability of the request.capability
- Resource
capability of the request@InterfaceAudience.Public @InterfaceStability.Unstable public abstract Resource getCapability()
Resource
capability of the request.Resource
capability of the requestCopyright © 2023 Apache Software Foundation. All rights reserved.