Class ContainerInfo
java.lang.Object
org.apache.hadoop.yarn.server.webapp.dao.ContainerInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected longprotected Stringprotected intprotected Stringprotected org.apache.hadoop.yarn.api.records.ContainerStateprotected Stringprotected longprotected longprotected Stringprotected Stringprotected Stringprotected intprotected long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturn a map of the allocated resources.longintorg.apache.hadoop.yarn.api.records.ContainerStatelonglongintlongboolean
-
Field Details
-
containerId
-
allocatedMB
protected long allocatedMB -
allocatedVCores
protected long allocatedVCores -
assignedNodeId
-
priority
protected int priority -
startedTime
protected long startedTime -
finishedTime
protected long finishedTime -
elapsedTime
protected long elapsedTime -
diagnosticsInfo
-
logUrl
-
containerExitStatus
protected int containerExitStatus -
containerState
protected org.apache.hadoop.yarn.api.records.ContainerState containerState -
nodeHttpAddress
-
nodeId
-
allocatedResources
-
-
Constructor Details
-
ContainerInfo
public ContainerInfo() -
ContainerInfo
public ContainerInfo(org.apache.hadoop.yarn.api.records.ContainerReport container)
-
-
Method Details
-
getContainerId
-
getAllocatedMB
public long getAllocatedMB() -
getAllocatedVCores
public long getAllocatedVCores() -
getAssignedNodeId
-
getPriority
public int getPriority() -
getStartedTime
public long getStartedTime() -
getFinishedTime
public long getFinishedTime() -
getElapsedTime
public long getElapsedTime() -
getDiagnosticsInfo
-
getLogUrl
-
getContainerExitStatus
public int getContainerExitStatus() -
getContainerState
public org.apache.hadoop.yarn.api.records.ContainerState getContainerState() -
getNodeHttpAddress
-
getNodeId
-
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
-
hasCustomResources
public boolean hasCustomResources()
-