Class StopContainersRequest

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

@Public @Stable public abstract class StopContainersRequest extends Object

The request sent by the ApplicationMaster to the NodeManager to stop containers.

See Also:
  • Constructor Details

    • StopContainersRequest

      public StopContainersRequest()
  • Method Details

    • newInstance

      @Public @Stable public static StopContainersRequest newInstance(List<ContainerId> containerIds)
    • getContainerIds

      @Public @Stable public abstract List<ContainerId> getContainerIds()
      Get the ContainerIds of the containers to be stopped.
      Returns:
      ContainerIds of containers to be stopped
    • setContainerIds

      @Public @Stable public abstract void setContainerIds(List<ContainerId> containerIds)
      Set the ContainerIds of the containers to be stopped.
      Parameters:
      containerIds - ContainerIds of the containers to be stopped