Class ContainerReport
java.lang.Object
org.apache.hadoop.yarn.api.records.ContainerReport
ContainerReport is a report of an container.
It includes details such as:
ContainerIdof the container.- Allocated Resources to the container.
- Assigned Node id.
- Assigned Priority.
- Creation Time.
- Finish Time.
- Container Exit Status.
ContainerStateof the container.- Diagnostic information in case of errors.
- Log URL.
- nodeHttpAddress
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ResourceGet the allocatedResourceof the container.abstract NodeIdGet the allocatedNodeIdwhere container is running.abstract intGet the finalexit statusof the container.abstract ContainerIdGet theContainerIdof the container.abstract ContainerStateGet the finalContainerStateof the container.abstract longGet the creation time of the container.abstract StringGet the DiagnosticsInfo of the container.abstract ExecutionTypeGet the execution type of the container.abstract StringGet exposed ports of the container.abstract longGet the Finish time of the container.abstract StringGet the LogURL of the container.abstract StringGet the Node Http address of the container.abstract PriorityGet the allocatedPriorityof the container.static ContainerReportnewInstance(ContainerId containerId, Resource allocatedResource, NodeId assignedNode, Priority priority, long creationTime, long finishTime, String diagnosticInfo, String logUrl, int containerExitStatus, ContainerState containerState, String nodeHttpAddress) static ContainerReportnewInstance(ContainerId containerId, Resource allocatedResource, NodeId assignedNode, Priority priority, long creationTime, long finishTime, String diagnosticInfo, String logUrl, int containerExitStatus, ContainerState containerState, String nodeHttpAddress, ExecutionType executionType) abstract voidsetAllocatedResource(Resource resource) abstract voidsetAssignedNode(NodeId nodeId) abstract voidsetContainerExitStatus(int containerExitStatus) abstract voidsetContainerId(ContainerId containerId) abstract voidsetContainerState(ContainerState containerState) abstract voidsetCreationTime(long creationTime) abstract voidsetDiagnosticsInfo(String diagnosticsInfo) abstract voidsetExecutionType(ExecutionType executionType) abstract voidabstract voidsetFinishTime(long finishTime) abstract voidabstract voidsetNodeHttpAddress(String nodeHttpAddress) abstract voidsetPriority(Priority priority)
-
Constructor Details
-
ContainerReport
public ContainerReport()
-
-
Method Details
-
newInstance
@Private @Unstable public static ContainerReport newInstance(ContainerId containerId, Resource allocatedResource, NodeId assignedNode, Priority priority, long creationTime, long finishTime, String diagnosticInfo, String logUrl, int containerExitStatus, ContainerState containerState, String nodeHttpAddress) -
newInstance
@Private @Unstable public static ContainerReport newInstance(ContainerId containerId, Resource allocatedResource, NodeId assignedNode, Priority priority, long creationTime, long finishTime, String diagnosticInfo, String logUrl, int containerExitStatus, ContainerState containerState, String nodeHttpAddress, ExecutionType executionType) -
getContainerId
Get theContainerIdof the container.- Returns:
ContainerIdof the container.
-
setContainerId
-
getAllocatedResource
Get the allocatedResourceof the container.- Returns:
- allocated
Resourceof the container.
-
setAllocatedResource
-
getAssignedNode
Get the allocatedNodeIdwhere container is running.- Returns:
- allocated
NodeIdwhere container is running.
-
setAssignedNode
-
getPriority
Get the allocatedPriorityof the container.- Returns:
- allocated
Priorityof the container.
-
setPriority
-
getCreationTime
@Public @Unstable public abstract long getCreationTime()Get the creation time of the container.- Returns:
- creation time of the container
-
setCreationTime
@Public @Unstable public abstract void setCreationTime(long creationTime) -
getFinishTime
@Public @Unstable public abstract long getFinishTime()Get the Finish time of the container.- Returns:
- Finish time of the container
-
setFinishTime
@Public @Unstable public abstract void setFinishTime(long finishTime) -
getDiagnosticsInfo
Get the DiagnosticsInfo of the container.- Returns:
- DiagnosticsInfo of the container
-
setDiagnosticsInfo
-
getLogUrl
Get the LogURL of the container.- Returns:
- LogURL of the container
-
setLogUrl
-
getContainerState
Get the finalContainerStateof the container.- Returns:
- final
ContainerStateof the container.
-
setContainerState
-
getContainerExitStatus
@Public @Unstable public abstract int getContainerExitStatus()Get the finalexit statusof the container.- Returns:
- final
exit statusof the container.
-
setContainerExitStatus
@Public @Unstable public abstract void setContainerExitStatus(int containerExitStatus) -
getExposedPorts
Get exposed ports of the container.- Returns:
- the node exposed ports of the container
-
setExposedPorts
-
getNodeHttpAddress
Get the Node Http address of the container.- Returns:
- the node http address of the container
-
setNodeHttpAddress
-
getExecutionType
Get the execution type of the container.- Returns:
- the execution type of the container
-
setExecutionType
-