Class GetContainersResponse

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

@Public @Unstable public abstract class GetContainersResponse extends Object

The response sent by the ResourceManager to a client requesting a list of ContainerReport for containers.

The ContainerReport for each container includes the container details.

See Also:
  • ContainerReport
  • ApplicationBaseProtocol.getContainers(GetContainersRequest)
  • Constructor Details

    • GetContainersResponse

      public GetContainersResponse()
  • Method Details

    • newInstance

      @Public @Unstable public static GetContainersResponse newInstance(List<ContainerReport> containers)
    • getContainerList

      @Public @Unstable public abstract List<ContainerReport> getContainerList()
      Get a list of ContainerReport for all the containers of an application attempt.
      Returns:
      a list of ContainerReport for all the containers of an application attempt
    • setContainerList

      @Public @Unstable public abstract void setContainerList(List<ContainerReport> containers)
      Set a list of ContainerReport for all the containers of an application attempt.
      Parameters:
      containers - a list of ContainerReport for all the containers of an application attempt