Class ContainerContext

java.lang.Object
org.apache.hadoop.yarn.server.api.ContainerContext
Direct Known Subclasses:
ContainerInitializationContext, ContainerTerminationContext

@Public @Evolving public class ContainerContext extends Object
Base context class for AuxiliaryService initializing and stopping a container.
  • Constructor Details

  • Method Details

    • getUser

      public String getUser()
      Get user of the container being initialized or stopped.
      Returns:
      the user
    • getContainerId

      public ContainerId getContainerId()
      Get ContainerId of the container being initialized or stopped.
      Returns:
      the container ID
    • getResource

      public Resource getResource()
      Get Resource the resource capability allocated to the container being initialized or stopped.
      Returns:
      the resource capability.
    • getContainerType

      public ContainerType getContainerType()
      Get ContainerType the type of the container being initialized or stopped.
      Returns:
      the type of the container
    • getExecutionType

      public ExecutionType getExecutionType()
      Get ExecutionType the execution type of the container being initialized or stopped.
      Returns:
      the execution type of the container