Class ContainerContext
java.lang.Object
org.apache.hadoop.yarn.server.api.ContainerContext
- Direct Known Subclasses:
ContainerInitializationContext,ContainerTerminationContext
Base context class for
AuxiliaryService initializing and stopping a
container.-
Constructor Summary
ConstructorsConstructorDescriptionContainerContext(String user, ContainerId containerId, Resource resource) ContainerContext(String user, ContainerId containerId, Resource resource, ContainerType containerType) ContainerContext(String user, ContainerId containerId, Resource resource, ContainerType containerType, ExecutionType executionType) -
Method Summary
Modifier and TypeMethodDescriptionGetContainerIdof the container being initialized or stopped.GetContainerTypethe type of the container being initialized or stopped.GetExecutionTypethe execution type of the container being initialized or stopped.GetResourcethe resource capability allocated to the container being initialized or stopped.getUser()Get user of the container being initialized or stopped.
-
Constructor Details
-
ContainerContext
-
ContainerContext
@Private @Unstable public ContainerContext(String user, ContainerId containerId, Resource resource, ContainerType containerType) -
ContainerContext
@Private @Unstable public ContainerContext(String user, ContainerId containerId, Resource resource, ContainerType containerType, ExecutionType executionType)
-
-
Method Details
-
getUser
Get user of the container being initialized or stopped.- Returns:
- the user
-
getContainerId
GetContainerIdof the container being initialized or stopped.- Returns:
- the container ID
-
getResource
GetResourcethe resource capability allocated to the container being initialized or stopped.- Returns:
- the resource capability.
-
getContainerType
GetContainerTypethe type of the container being initialized or stopped.- Returns:
- the type of the container
-
getExecutionType
GetExecutionTypethe execution type of the container being initialized or stopped.- Returns:
- the execution type of the container
-