org.apache.hadoop.yarn.api.protocolrecords
Class StopContainersRequest

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

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract class StopContainersRequest
extends Object

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

See Also:
ContainerManagementProtocol.stopContainers(StopContainersRequest)

Constructor Summary
StopContainersRequest()
           
 
Method Summary
abstract  List<ContainerId> getContainerIds()
          Get the ContainerIds of the containers to be stopped.
static StopContainersRequest newInstance(List<ContainerId> containerIds)
           
abstract  void setContainerIds(List<ContainerId> containerIds)
          Set the ContainerIds of the containers to be stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopContainersRequest

public StopContainersRequest()
Method Detail

newInstance

@InterfaceAudience.Public
@InterfaceStability.Stable
public static StopContainersRequest newInstance(List<ContainerId> containerIds)

getContainerIds

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract List<ContainerId> getContainerIds()
Get the ContainerIds of the containers to be stopped.

Returns:
ContainerIds of containers to be stopped

setContainerIds

@InterfaceAudience.Public
@InterfaceStability.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


Copyright © 2013 Apache Software Foundation. All Rights Reserved.