org.elasticsearch.action.admin.cluster.node.shutdown
Class NodesShutdownRequestBuilder
java.lang.Object
org.elasticsearch.action.admin.cluster.support.BaseClusterRequestBuilder<NodesShutdownRequest,NodesShutdownResponse>
org.elasticsearch.action.admin.cluster.node.shutdown.NodesShutdownRequestBuilder
- All Implemented Interfaces:
- ActionRequestBuilder<NodesShutdownRequest,NodesShutdownResponse>
public class NodesShutdownRequestBuilder
- extends BaseClusterRequestBuilder<NodesShutdownRequest,NodesShutdownResponse>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodesShutdownRequestBuilder
public NodesShutdownRequestBuilder(ClusterAdminClient clusterClient)
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.