PreemptionContainer (Apache Hadoop Main 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.api.records, class: PreemptionContainer

Package org.apache.hadoop.yarn.api.records

# Class PreemptionContainer

java.lang.Object
org.apache.hadoop.yarn.api.records.PreemptionContainer

@Public @Evolving public abstract class PreemptionContainer extends Object
Specific container requested back by the `ResourceManager`.

See Also:
  - `PreemptionContract`
  - `StrictPreemptionContract`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PreemptionContainer()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract ContainerId`
  `getId()`
  `static PreemptionContainer`
  `newInstance(ContainerId id)`
  `abstract void`
  `setId(ContainerId id)`

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

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

- ## Constructor Details

  - ### PreemptionContainer

    public PreemptionContainer()

- ## Method Details

  - ### newInstance

    @Private @Unstable public static PreemptionContainer newInstance(ContainerId id)

  - ### getId

    @Public @Evolving public abstract ContainerId getId()
    Returns:
      Container referenced by this handle.

  - ### setId

    @Private @Unstable public abstract void setId(ContainerId id)