org.elasticsearch.action.admin.cluster.node.shutdown
Class NodesShutdownRequest

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

public class NodesShutdownRequest
extends NodesOperationRequest

A request to shutdown one ore more nodes (or the whole cluster).


Field Summary
 
Fields inherited from class org.elasticsearch.action.support.nodes.NodesOperationRequest
ALL_NODES
 
Constructor Summary
protected NodesShutdownRequest()
           
  NodesShutdownRequest(java.lang.String... nodesIds)
          Shuts down nodes based on the nodes ids specified.
 
Method Summary
 TimeValue delay()
           
 NodesShutdownRequest delay(TimeValue delay)
          The delay for the shutdown to occur.
 void readFrom(StreamInput in)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class org.elasticsearch.action.support.nodes.NodesOperationRequest
listenerThreaded, listenerThreaded, nodesIds, nodesIds, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodesShutdownRequest

protected NodesShutdownRequest()

NodesShutdownRequest

public NodesShutdownRequest(java.lang.String... nodesIds)
Shuts down nodes based on the nodes ids specified. If none are passed, all nodes will be shutdown.

Method Detail

delay

public NodesShutdownRequest delay(TimeValue delay)
The delay for the shutdown to occur. Defaults to 1s.


delay

public TimeValue delay()

readFrom

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

writeTo

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