Class ContainerLogContext
java.lang.Object
org.apache.hadoop.yarn.server.api.ContainerLogContext
Context class for
ContainerLogAggregationPolicy.-
Constructor Summary
ConstructorsConstructorDescriptionContainerLogContext(ContainerId containerId, ContainerType containerType, int exitCode) -
Method Summary
Modifier and TypeMethodDescriptionGetContainerIdof the container.GetContainerTypethe type of the container.intGet the exit code of the container.
-
Constructor Details
-
ContainerLogContext
@Public @Unstable public ContainerLogContext(ContainerId containerId, ContainerType containerType, int exitCode)
-
-
Method Details
-
getContainerId
GetContainerIdof the container.- Returns:
- the container ID
-
getContainerType
GetContainerTypethe type of the container.- Returns:
- the type of the container
-
getExitCode
public int getExitCode()Get the exit code of the container.- Returns:
- the exit code
-