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

java.lang.Object
  extended by org.elasticsearch.action.admin.cluster.support.BaseClusterRequestBuilder<NodesShutdownRequest,NodesShutdownResponse>
      extended by org.elasticsearch.action.admin.cluster.node.shutdown.NodesShutdownRequestBuilder
All Implemented Interfaces:
ActionRequestBuilder<NodesShutdownRequest,NodesShutdownResponse>

public class NodesShutdownRequestBuilder
extends BaseClusterRequestBuilder<NodesShutdownRequest,NodesShutdownResponse>


Field Summary
 
Fields inherited from class org.elasticsearch.action.admin.cluster.support.BaseClusterRequestBuilder
client, request
 
Constructor Summary
NodesShutdownRequestBuilder(ClusterAdminClient clusterClient)
           
 
Method Summary
protected  void doExecute(ActionListener<NodesShutdownResponse> listener)
           
 NodesShutdownRequestBuilder setDelay(String delay)
          The delay for the restart to occur.
 NodesShutdownRequestBuilder setDelay(TimeValue delay)
          The delay for the restart to occur.
 NodesShutdownRequestBuilder setExit(boolean exit)
          Should the JVM be exited as well or not.
 NodesShutdownRequestBuilder setMasterNodeTimeout(TimeValue timeout)
          Sets the master node timeout in case the master has not yet been discovered.
 NodesShutdownRequestBuilder setNodesIds(String... nodesIds)
          The nodes ids to restart.
 
Methods inherited from class org.elasticsearch.action.admin.cluster.support.BaseClusterRequestBuilder
execute, execute, request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodesShutdownRequestBuilder

public NodesShutdownRequestBuilder(ClusterAdminClient clusterClient)
Method Detail

setNodesIds

public NodesShutdownRequestBuilder setNodesIds(String... nodesIds)
The nodes ids to restart.


setDelay

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


setDelay

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


setExit

public NodesShutdownRequestBuilder setExit(boolean exit)
Should the JVM be exited as well or not. Defaults to true.


setMasterNodeTimeout

public NodesShutdownRequestBuilder setMasterNodeTimeout(TimeValue timeout)
Sets the master node timeout in case the master has not yet been discovered.


doExecute

protected void doExecute(ActionListener<NodesShutdownResponse> listener)
Specified by:
doExecute in class BaseClusterRequestBuilder<NodesShutdownRequest,NodesShutdownResponse>


Copyright © 2009-2012. All Rights Reserved.