ContainerTerminationContext (Apache Hadoop YARN API 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.server.api, class: ContainerTerminationContext

Package org.apache.hadoop.yarn.server.api

# Class ContainerTerminationContext

java.lang.Object
org.apache.hadoop.yarn.server.api.ContainerContext
org.apache.hadoop.yarn.server.api.ContainerTerminationContext

@Public @Evolving public class ContainerTerminationContext extends ContainerContext
Termination context for `AuxiliaryService` when stopping a container.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ContainerTerminationContext(String user, ContainerId containerId, Resource resource)`
  `ContainerTerminationContext(String user, ContainerId containerId, Resource resource, ContainerType containerType)`

- ## Method Summary

  ### Methods inherited from class org.apache.hadoop.yarn.server.api.ContainerContext

  `getContainerId, getContainerType, getExecutionType, getResource, getUser`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ContainerTerminationContext

    @Private @Unstable public ContainerTerminationContext(String user, ContainerId containerId, Resource resource)

  - ### ContainerTerminationContext

    @Private @Unstable public ContainerTerminationContext(String user, ContainerId containerId, Resource resource, ContainerType containerType)