Class ContainerInfo

java.lang.Object
org.apache.hadoop.yarn.server.webapp.dao.ContainerInfo

@Public @Evolving public class ContainerInfo extends Object
  • Field Details

    • containerId

      protected String containerId
    • allocatedMB

      protected long allocatedMB
    • allocatedVCores

      protected long allocatedVCores
    • assignedNodeId

      protected String assignedNodeId
    • priority

      protected int priority
    • startedTime

      protected long startedTime
    • finishedTime

      protected long finishedTime
    • elapsedTime

      protected long elapsedTime
    • diagnosticsInfo

      protected String diagnosticsInfo
    • logUrl

      protected String logUrl
    • containerExitStatus

      protected int containerExitStatus
    • containerState

      protected org.apache.hadoop.yarn.api.records.ContainerState containerState
    • nodeHttpAddress

      protected String nodeHttpAddress
    • nodeId

      protected String nodeId
    • allocatedResources

      protected Map<String,Long> allocatedResources
  • Constructor Details

    • ContainerInfo

      public ContainerInfo()
    • ContainerInfo

      public ContainerInfo(org.apache.hadoop.yarn.api.records.ContainerReport container)
  • Method Details

    • getContainerId

      public String getContainerId()
    • getAllocatedMB

      public long getAllocatedMB()
    • getAllocatedVCores

      public long getAllocatedVCores()
    • getAssignedNodeId

      public String getAssignedNodeId()
    • getPriority

      public int getPriority()
    • getStartedTime

      public long getStartedTime()
    • getFinishedTime

      public long getFinishedTime()
    • getElapsedTime

      public long getElapsedTime()
    • getDiagnosticsInfo

      public String getDiagnosticsInfo()
    • getLogUrl

      public String getLogUrl()
    • getContainerExitStatus

      public int getContainerExitStatus()
    • getContainerState

      public org.apache.hadoop.yarn.api.records.ContainerState getContainerState()
    • getNodeHttpAddress

      public String getNodeHttpAddress()
    • getNodeId

      public String getNodeId()
    • getAllocatedResources

      public Map<String,Long> getAllocatedResources()
      Return a map of the allocated resources. The map key is the resource name, and the value is the resource value.
      Returns:
      the allocated resources map
    • getExposedPorts

      public String getExposedPorts()
    • hasCustomResources

      public boolean hasCustomResources()