@InterfaceAudience.Private @InterfaceStability.Unstable public class ContainerPBImpl extends Container
| Constructor and Description |
|---|
ContainerPBImpl() |
ContainerPBImpl(YarnProtos.ContainerProto proto) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Container other) |
boolean |
equals(Object other) |
Token |
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.
|
Priority |
getPriority()
Get the
Priority at which the Container was
allocated. |
YarnProtos.ContainerProto |
getProto() |
Resource |
getResource()
Get the
Resource allocated to the container. |
int |
hashCode() |
void |
setContainerToken(Token containerToken) |
void |
setId(ContainerId id) |
void |
setNodeHttpAddress(String nodeHttpAddress) |
void |
setNodeId(NodeId nodeId) |
void |
setPriority(Priority priority) |
void |
setResource(Resource resource) |
String |
toString() |
newInstancepublic ContainerPBImpl()
public ContainerPBImpl(YarnProtos.ContainerProto proto)
public YarnProtos.ContainerProto getProto()
public ContainerId getId()
Containerpublic NodeId getNodeId()
Containerpublic void setId(ContainerId id)
public String getNodeHttpAddress()
ContainergetNodeHttpAddress in class Containerpublic void setNodeHttpAddress(String nodeHttpAddress)
setNodeHttpAddress in class Containerpublic Resource getResource()
ContainerResource allocated to the container.getResource in class ContainerResource allocated to the containerpublic void setResource(Resource resource)
setResource in class Containerpublic Priority getPriority()
ContainerPriority at which the Container was
allocated.getPriority in class ContainerPriority at which the Container was
allocatedpublic void setPriority(Priority priority)
setPriority in class Containerpublic Token getContainerToken()
ContainerContainerToken for the container.
ContainerToken is the security token used by the framework
to verify authenticity of any Container.
The ResourceManager, on container allocation provides a
secure token which is verified by the NodeManager on
container launch.
Applications do not need to care about ContainerToken, they
are transparently handled by the framework - the allocated
Container includes the ContainerToken.
getContainerToken in class ContainerContainerToken for the containerApplicationMasterProtocol.allocate(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest),
ContainerManagementProtocol.startContainers(org.apache.hadoop.yarn.api.protocolrecords.StartContainersRequest)public void setContainerToken(Token containerToken)
setContainerToken in class Containerpublic int compareTo(Container other)
Copyright © 2013 Apache Software Foundation. All rights reserved.