org.apache.hadoop.yarn.api.records
Class ContainerReport

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ContainerReport

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract class ContainerReport
extends Object

ContainerReport is a report of an container.

It includes details such as:


Constructor Summary
ContainerReport()
           
 
Method Summary
abstract  Resource getAllocatedResource()
          Get the allocated Resource of the container.
abstract  NodeId getAssignedNode()
          Get the allocated NodeId where container is running.
abstract  int getContainerExitStatus()
          Get the final exit status of the container.
abstract  ContainerId getContainerId()
          Get the ContainerId of the container.
abstract  ContainerState getContainerState()
          Get the final ContainerState of the container.
abstract  String getDiagnosticsInfo()
          Get the DiagnosticsInfo of the container.
abstract  long getFinishTime()
          Get the Finish time of the container.
abstract  String getLogUrl()
          Get the LogURL of the container.
abstract  Priority getPriority()
          Get the allocated Priority of the container.
abstract  long getStartTime()
          Get the Start time of the container.
abstract  void setAllocatedResource(Resource resource)
           
abstract  void setAssignedNode(NodeId nodeId)
           
abstract  void setContainerExitStatus(int containerExitStatus)
           
abstract  void setContainerId(ContainerId containerId)
           
abstract  void setContainerState(ContainerState containerState)
           
abstract  void setDiagnosticsInfo(String diagnosticsInfo)
           
abstract  void setFinishTime(long finishTime)
           
abstract  void setLogUrl(String logUrl)
           
abstract  void setPriority(Priority priority)
           
abstract  void setStartTime(long startTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerReport

public ContainerReport()
Method Detail

getContainerId

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract ContainerId getContainerId()
Get the ContainerId of the container.

Returns:
ContainerId of the container.

setContainerId

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setContainerId(ContainerId containerId)

getAllocatedResource

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract Resource getAllocatedResource()
Get the allocated Resource of the container.

Returns:
allocated Resource of the container.

setAllocatedResource

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setAllocatedResource(Resource resource)

getAssignedNode

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract NodeId getAssignedNode()
Get the allocated NodeId where container is running.

Returns:
allocated NodeId where container is running.

setAssignedNode

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setAssignedNode(NodeId nodeId)

getPriority

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract Priority getPriority()
Get the allocated Priority of the container.

Returns:
allocated Priority of the container.

setPriority

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setPriority(Priority priority)

getStartTime

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract long getStartTime()
Get the Start time of the container.

Returns:
Start time of the container

setStartTime

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setStartTime(long startTime)

getFinishTime

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract long getFinishTime()
Get the Finish time of the container.

Returns:
Finish time of the container

setFinishTime

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setFinishTime(long finishTime)

getDiagnosticsInfo

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract String getDiagnosticsInfo()
Get the DiagnosticsInfo of the container.

Returns:
DiagnosticsInfo of the container

setDiagnosticsInfo

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setDiagnosticsInfo(String diagnosticsInfo)

getLogUrl

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract String getLogUrl()
Get the LogURL of the container.

Returns:
LogURL of the container

setLogUrl

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setLogUrl(String logUrl)

getContainerState

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract ContainerState getContainerState()
Get the final ContainerState of the container.

Returns:
final ContainerState of the container.

setContainerState

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setContainerState(ContainerState containerState)

getContainerExitStatus

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract int getContainerExitStatus()
Get the final exit status of the container.

Returns:
final exit status of the container.

setContainerExitStatus

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setContainerExitStatus(int containerExitStatus)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.