org.apache.hadoop.yarn.server.api.protocolrecords.impl.pb
Class NMContainerStatusPBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.server.api.protocolrecords.NMContainerStatus
      extended by org.apache.hadoop.yarn.server.api.protocolrecords.impl.pb.NMContainerStatusPBImpl

public class NMContainerStatusPBImpl
extends NMContainerStatus


Constructor Summary
NMContainerStatusPBImpl()
           
NMContainerStatusPBImpl(YarnServerCommonServiceProtos.NMContainerStatusProto proto)
           
 
Method Summary
 boolean equals(Object other)
           
 org.apache.hadoop.yarn.api.records.Resource getAllocatedResource()
          Get the allocated Resource of the container.
 int getContainerExitStatus()
          Get the final exit status of the container.
 org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
          Get the ContainerId of the container.
 org.apache.hadoop.yarn.api.records.ContainerState getContainerState()
           
 long getCreationTime()
          Get the time when the container is created
 String getDiagnostics()
          Get the DiagnosticsInfo of the container.
 org.apache.hadoop.yarn.api.records.Priority getPriority()
          Get the Priority of the request.
 YarnServerCommonServiceProtos.NMContainerStatusProto getProto()
           
 int hashCode()
           
 void setAllocatedResource(org.apache.hadoop.yarn.api.records.Resource resource)
           
 void setContainerExitStatus(int containerExitStatus)
           
 void setContainerId(org.apache.hadoop.yarn.api.records.ContainerId containerId)
           
 void setContainerState(org.apache.hadoop.yarn.api.records.ContainerState containerState)
           
 void setCreationTime(long creationTime)
           
 void setDiagnostics(String diagnosticsInfo)
           
 void setPriority(org.apache.hadoop.yarn.api.records.Priority priority)
           
 String toString()
           
 
Methods inherited from class org.apache.hadoop.yarn.server.api.protocolrecords.NMContainerStatus
newInstance
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NMContainerStatusPBImpl

public NMContainerStatusPBImpl()

NMContainerStatusPBImpl

public NMContainerStatusPBImpl(YarnServerCommonServiceProtos.NMContainerStatusProto proto)
Method Detail

getProto

public YarnServerCommonServiceProtos.NMContainerStatusProto getProto()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

getAllocatedResource

public org.apache.hadoop.yarn.api.records.Resource getAllocatedResource()
Description copied from class: NMContainerStatus
Get the allocated Resource of the container.

Specified by:
getAllocatedResource in class NMContainerStatus
Returns:
allocated Resource of the container.

getContainerId

public org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
Description copied from class: NMContainerStatus
Get the ContainerId of the container.

Specified by:
getContainerId in class NMContainerStatus
Returns:
ContainerId of the container.

getDiagnostics

public String getDiagnostics()
Description copied from class: NMContainerStatus
Get the DiagnosticsInfo of the container.

Specified by:
getDiagnostics in class NMContainerStatus
Returns:
DiagnosticsInfo of the container

getContainerState

public org.apache.hadoop.yarn.api.records.ContainerState getContainerState()
Specified by:
getContainerState in class NMContainerStatus

setAllocatedResource

public void setAllocatedResource(org.apache.hadoop.yarn.api.records.Resource resource)
Specified by:
setAllocatedResource in class NMContainerStatus

setContainerId

public void setContainerId(org.apache.hadoop.yarn.api.records.ContainerId containerId)
Specified by:
setContainerId in class NMContainerStatus

setDiagnostics

public void setDiagnostics(String diagnosticsInfo)
Specified by:
setDiagnostics in class NMContainerStatus

setContainerState

public void setContainerState(org.apache.hadoop.yarn.api.records.ContainerState containerState)
Specified by:
setContainerState in class NMContainerStatus

getContainerExitStatus

public int getContainerExitStatus()
Description copied from class: NMContainerStatus
Get the final exit status of the container.

Specified by:
getContainerExitStatus in class NMContainerStatus
Returns:
final exit status of the container.

setContainerExitStatus

public void setContainerExitStatus(int containerExitStatus)
Specified by:
setContainerExitStatus in class NMContainerStatus

getPriority

public org.apache.hadoop.yarn.api.records.Priority getPriority()
Description copied from class: NMContainerStatus
Get the Priority of the request.

Specified by:
getPriority in class NMContainerStatus
Returns:
Priority of the request

setPriority

public void setPriority(org.apache.hadoop.yarn.api.records.Priority priority)
Specified by:
setPriority in class NMContainerStatus

getCreationTime

public long getCreationTime()
Description copied from class: NMContainerStatus
Get the time when the container is created

Specified by:
getCreationTime in class NMContainerStatus

setCreationTime

public void setCreationTime(long creationTime)
Specified by:
setCreationTime in class NMContainerStatus


Copyright © 2014 Apache Software Foundation. All Rights Reserved.