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

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

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

The request from clients to get a report of all nodes in the cluster from the ResourceManager.

The request will ask for all nodes in the given NodeStates.

See Also:
ApplicationClientProtocol.getClusterNodes(GetClusterNodesRequest)

Constructor Summary
GetClusterNodesRequest()
           
 
Method Summary
abstract  EnumSet<NodeState> getNodeStates()
          The state to filter the cluster nodes with.
static GetClusterNodesRequest newInstance()
           
static GetClusterNodesRequest newInstance(EnumSet<NodeState> states)
           
abstract  void setNodeStates(EnumSet<NodeState> states)
          The state to filter the cluster nodes with.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetClusterNodesRequest

public GetClusterNodesRequest()
Method Detail

newInstance

@InterfaceAudience.Public
@InterfaceStability.Stable
public static GetClusterNodesRequest newInstance(EnumSet<NodeState> states)

newInstance

@InterfaceAudience.Public
@InterfaceStability.Stable
public static GetClusterNodesRequest newInstance()

getNodeStates

public abstract EnumSet<NodeState> getNodeStates()
The state to filter the cluster nodes with.


setNodeStates

public abstract void setNodeStates(EnumSet<NodeState> states)
The state to filter the cluster nodes with.



Copyright © 2013 Apache Software Foundation. All Rights Reserved.