org.elasticsearch.action.admin.cluster.node.restart
Class NodesRestartRequest

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

public class NodesRestartRequest
extends NodesOperationRequest

A request to restart 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 NodesRestartRequest()
           
  NodesRestartRequest(String... nodesIds)
          Restarts down nodes based on the nodes ids specified.
 
Method Summary
 TimeValue delay()
           
 NodesRestartRequest delay(String delay)
          The delay for the restart to occur.
 NodesRestartRequest delay(TimeValue delay)
          The delay for the restart to occur.
 void readFrom(StreamInput in)
           
 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

NodesRestartRequest

protected NodesRestartRequest()

NodesRestartRequest

public NodesRestartRequest(String... nodesIds)
Restarts down nodes based on the nodes ids specified. If none are passed, all nodes will be shutdown.

Method Detail

delay

public NodesRestartRequest delay(TimeValue delay)
The delay for the restart to occur. Defaults to 1s.


delay

public NodesRestartRequest delay(String delay)
The delay for the restart to occur. Defaults to 1s.


delay

public TimeValue delay()

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.