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

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

# Class PreemptionResourceRequest

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

@Public @Evolving public abstract class PreemptionResourceRequest extends Object
Description of resources requested back by the cluster.

See Also:
  - `PreemptionContract`
  - `AllocateRequest.setAskList(java.util.List)`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PreemptionResourceRequest()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract ResourceRequest`
  `getResourceRequest()`
  `static PreemptionResourceRequest`
  `newInstance(ResourceRequest req)`
  `abstract void`
  `setResourceRequest(ResourceRequest req)`

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

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

- ## Constructor Details

  - ### PreemptionResourceRequest

    public PreemptionResourceRequest()

- ## Method Details

  - ### newInstance

    @Private @Unstable public static PreemptionResourceRequest newInstance(ResourceRequest req)

  - ### getResourceRequest

    @Public @Evolving public abstract ResourceRequest getResourceRequest()
    Returns:
      Resource described in this request, to be matched against running containers.

  - ### setResourceRequest

    @Private @Unstable public abstract void setResourceRequest(ResourceRequest req)