@InterfaceAudience.Public @InterfaceStability.Stable public interface Container extends Comparable<Container>
Container represents an allocated resource in the cluster.
The ResourceManager is the sole authority to allocate any
Container to applications. The allocated Container
is always on a single node and has a unique ContainerId. It has
a specific amount of Resource allocated.
It includes details such as:
ContainerId for the container, which is globally unique.NodeId of the node on which it is allocated.
Resource allocated to the container.Priority at which the container was allocated.ContainerState of the container.ContainerToken of the container, used to securely verify
authenticity of the allocation.
ContainerStatus of the container.Typically, an ApplicationMaster receives the
Container from the ResourceManager during
resource-negotiation and then talks to the NodManager to
start/stop containers.
| Modifier and Type | Method and Description |
|---|---|
ContainerStatus |
getContainerStatus()
Get the
ContainerStatus of the container. |
ContainerToken |
getContainerToken()
Get the
ContainerToken for the container. |
ContainerId |
getId()
Get the globally unique identifier for the container.
|
String |
getNodeHttpAddress()
Get the http uri of the node on which the container is allocated.
|
NodeId |
getNodeId()
Get the identifier of the node on which the container is allocated.
|
org.apache.hadoop.yarn.api.records.Priority |
getPriority()
Get the
Priority at which the Container was
allocated. |
Resource |
getResource()
Get the
Resource allocated to the container. |
org.apache.hadoop.yarn.api.records.ContainerState |
getState()
Get the current
ContainerState of the container. |
compareTo@InterfaceAudience.Public @InterfaceStability.Stable ContainerId getId()
@InterfaceAudience.Public @InterfaceStability.Stable NodeId getNodeId()
@InterfaceAudience.Public @InterfaceStability.Stable String getNodeHttpAddress()
@InterfaceAudience.Public @InterfaceStability.Stable Resource getResource()
Resource allocated to the container.Resource allocated to the containerorg.apache.hadoop.yarn.api.records.Priority getPriority()
Priority at which the Container was
allocated.Priority at which the Container was
allocated@InterfaceAudience.Public @InterfaceStability.Stable org.apache.hadoop.yarn.api.records.ContainerState getState()
ContainerState of the container.ContainerState of the container@InterfaceAudience.Public @InterfaceStability.Stable ContainerToken getContainerToken()
ContainerToken for the container.ContainerToken for the container@InterfaceAudience.Public @InterfaceStability.Stable ContainerStatus getContainerStatus()
ContainerStatus of the container.ContainerStatus of the containerCopyright © 2014 Apache Software Foundation. All Rights Reserved.