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

Package org.apache.hadoop.yarn.api.protocolrecords

# Class GetContainerReportRequest

java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.GetContainerReportRequest

@Public @Unstable public abstract class GetContainerReportRequest extends Object

The request sent by a client to the `ResourceManager` to get an `ContainerReport` for a container.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GetContainerReportRequest()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract ContainerId`
  `getContainerId()`
  Get the `ContainerId` of the Container.
  `static GetContainerReportRequest`
  `newInstance(ContainerId containerId)`
  `abstract void`
  `setContainerId(ContainerId containerId)`
  Set the `ContainerId` of the container

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

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

- ## Constructor Details

  - ### GetContainerReportRequest

    public GetContainerReportRequest()

- ## Method Details

  - ### newInstance

    @Public @Unstable public static GetContainerReportRequest newInstance(ContainerId containerId)

  - ### getContainerId

    @Public @Unstable public abstract ContainerId getContainerId()
    Get the `ContainerId` of the Container.
    Returns:
      `ContainerId` of the Container

  - ### setContainerId

    @Public @Unstable public abstract void setContainerId(ContainerId containerId)
    Set the `ContainerId` of the container
    Parameters:
      `containerId` - `ContainerId` of the container