@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() |
newInstance
public ContainerPBImpl()
public ContainerPBImpl(YarnProtos.ContainerProto proto)
public YarnProtos.ContainerProto getProto()
public ContainerId getId()
Container
public NodeId getNodeId()
Container
public void setId(ContainerId id)
public String getNodeHttpAddress()
Container
getNodeHttpAddress
in class Container
public void setNodeHttpAddress(String nodeHttpAddress)
setNodeHttpAddress
in class Container
public Resource getResource()
Container
Resource
allocated to the container.getResource
in class Container
Resource
allocated to the containerpublic void setResource(Resource resource)
setResource
in class Container
public Priority getPriority()
Container
Priority
at which the Container
was
allocated.getPriority
in class Container
Priority
at which the Container
was
allocatedpublic void setPriority(Priority priority)
setPriority
in class Container
public Token getContainerToken()
Container
ContainerToken
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 Container
ContainerToken
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 Container
public int compareTo(Container other)
Copyright © 2013 Apache Software Foundation. All rights reserved.