org.elasticsearch.action.admin.cluster.node.stats
Class NodesStatsRequest

java.lang.Object
  extended by org.elasticsearch.action.support.nodes.NodesOperationRequest
      extended by org.elasticsearch.action.admin.cluster.node.stats.NodesStatsRequest
All Implemented Interfaces:
ActionRequest, Streamable

public class NodesStatsRequest
extends NodesOperationRequest

A request to get node (cluster) level stats.


Field Summary
 
Fields inherited from class org.elasticsearch.action.support.nodes.NodesOperationRequest
ALL_NODES
 
Constructor Summary
protected NodesStatsRequest()
           
  NodesStatsRequest(String... nodesIds)
          Get stats from nodes based on the nodes ids specified.
 
Method Summary
 NodesStatsRequest all()
          Sets all the request flags.
 NodesStatsRequest clear()
          Clears all the request flags.
 boolean fs()
          Should the node file system stats be returned.
 NodesStatsRequest fs(boolean fs)
          Should the node file system stats be returned.
 boolean http()
          Should the node HTTP be returned.
 NodesStatsRequest http(boolean http)
          Should the node HTTP be returned.
 boolean indices()
          Should indices stats be returned.
 NodesStatsRequest indices(boolean indices)
          Should indices stats be returned.
 boolean jvm()
          Should the node JVM be returned.
 NodesStatsRequest jvm(boolean jvm)
          Should the node JVM be returned.
 boolean network()
          Should the node Network be returned.
 NodesStatsRequest network(boolean network)
          Should the node Network be returned.
 boolean os()
          Should the node OS be returned.
 NodesStatsRequest os(boolean os)
          Should the node OS be returned.
 boolean process()
          Should the node Process be returned.
 NodesStatsRequest process(boolean process)
          Should the node Process be returned.
 void readFrom(StreamInput in)
           
 boolean threadPool()
          Should the node Thread Pool be returned.
 NodesStatsRequest threadPool(boolean threadPool)
          Should the node Thread Pool be returned.
 boolean transport()
          Should the node Transport be returned.
 NodesStatsRequest transport(boolean transport)
          Should the node Transport be returned.
 void writeTo(StreamOutput out)
           
 
Methods inherited from class org.elasticsearch.action.support.nodes.NodesOperationRequest
listenerThreaded, listenerThreaded, nodesIds, nodesIds, timeout, timeout, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodesStatsRequest

protected NodesStatsRequest()

NodesStatsRequest

public NodesStatsRequest(String... nodesIds)
Get stats from nodes based on the nodes ids specified. If none are passed, stats for all nodes will be returned.

Method Detail

all

public NodesStatsRequest all()
Sets all the request flags.


clear

public NodesStatsRequest clear()
Clears all the request flags.


indices

public boolean indices()
Should indices stats be returned.


indices

public NodesStatsRequest indices(boolean indices)
Should indices stats be returned.


os

public boolean os()
Should the node OS be returned.


os

public NodesStatsRequest os(boolean os)
Should the node OS be returned.


process

public boolean process()
Should the node Process be returned.


process

public NodesStatsRequest process(boolean process)
Should the node Process be returned.


jvm

public boolean jvm()
Should the node JVM be returned.


jvm

public NodesStatsRequest jvm(boolean jvm)
Should the node JVM be returned.


threadPool

public boolean threadPool()
Should the node Thread Pool be returned.


threadPool

public NodesStatsRequest threadPool(boolean threadPool)
Should the node Thread Pool be returned.


network

public boolean network()
Should the node Network be returned.


network

public NodesStatsRequest network(boolean network)
Should the node Network be returned.


fs

public boolean fs()
Should the node file system stats be returned.


fs

public NodesStatsRequest fs(boolean fs)
Should the node file system stats be returned.


transport

public boolean transport()
Should the node Transport be returned.


transport

public NodesStatsRequest transport(boolean transport)
Should the node Transport be returned.


http

public boolean http()
Should the node HTTP be returned.


http

public NodesStatsRequest http(boolean http)
Should the node HTTP be returned.


readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Overrides:
readFrom in class NodesOperationRequest
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Overrides:
writeTo in class NodesOperationRequest
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.