|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.api.records.ProtoBase<YarnProtos.ContainerProto>
org.apache.hadoop.yarn.api.records.impl.pb.ContainerPBImpl
public class ContainerPBImpl
| Constructor Summary | |
|---|---|
ContainerPBImpl()
|
|
ContainerPBImpl(YarnProtos.ContainerProto proto)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Container other)
|
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. |
Priority |
getPriority()
Get the Priority at which the Container was
allocated. |
YarnProtos.ContainerProto |
getProto()
|
Resource |
getResource()
Get the Resource allocated to the container. |
ContainerState |
getState()
Get the current ContainerState of the container. |
void |
setContainerStatus(ContainerStatus containerStatus)
|
void |
setContainerToken(ContainerToken containerToken)
|
void |
setId(ContainerId id)
|
void |
setNodeHttpAddress(String nodeHttpAddress)
|
void |
setNodeId(NodeId nodeId)
|
void |
setPriority(Priority priority)
|
void |
setResource(Resource resource)
|
void |
setState(ContainerState state)
|
String |
toString()
|
| Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase |
|---|
convertFromProtoFormat, convertToProtoFormat, equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContainerPBImpl()
public ContainerPBImpl(YarnProtos.ContainerProto proto)
| Method Detail |
|---|
public YarnProtos.ContainerProto getProto()
getProto in class ProtoBase<YarnProtos.ContainerProto>public ContainerState getState()
ContainerContainerState of the container.
getState in interface ContainerContainerState of the containerpublic void setState(ContainerState state)
setState in interface Containerpublic ContainerId getId()
Container
getId in interface Containerpublic void setNodeId(NodeId nodeId)
setNodeId in interface Containerpublic NodeId getNodeId()
Container
getNodeId in interface Containerpublic void setId(ContainerId id)
setId in interface Containerpublic String getNodeHttpAddress()
Container
getNodeHttpAddress in interface Containerpublic void setNodeHttpAddress(String nodeHttpAddress)
setNodeHttpAddress in interface Containerpublic Resource getResource()
ContainerResource allocated to the container.
getResource in interface ContainerResource allocated to the containerpublic void setResource(Resource resource)
setResource in interface Containerpublic Priority getPriority()
ContainerPriority at which the Container was
allocated.
getPriority in interface ContainerPriority at which the Container was
allocatedpublic void setPriority(Priority priority)
setPriority in interface Containerpublic ContainerToken getContainerToken()
ContainerContainerToken for the container.
getContainerToken in interface ContainerContainerToken for the containerpublic void setContainerToken(ContainerToken containerToken)
setContainerToken in interface Containerpublic ContainerStatus getContainerStatus()
ContainerContainerStatus of the container.
getContainerStatus in interface ContainerContainerStatus of the containerpublic void setContainerStatus(ContainerStatus containerStatus)
setContainerStatus in interface Containerpublic String toString()
toString in class ProtoBase<YarnProtos.ContainerProto>public int compareTo(Container other)
compareTo in interface Comparable<Container>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||