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

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

public class NodesShutdownRequest
extends MasterNodeOperationRequest


Field Summary
 
Fields inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequest
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
 
Constructor Summary
NodesShutdownRequest(String... nodesIds)
           
 
Method Summary
 TimeValue delay()
           
 NodesShutdownRequest delay(String delay)
          The delay for the shutdown to occur.
 NodesShutdownRequest delay(TimeValue delay)
          The delay for the shutdown to occur.
 boolean exit()
          Should the JVM be exited as well or not.
 NodesShutdownRequest exit(boolean exit)
          Should the JVM be exited as well or not.
 NodesShutdownRequest nodesIds(String... nodesIds)
           
 void readFrom(StreamInput in)
           
 ActionRequestValidationException validate()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequest
listenerThreaded, listenerThreaded, masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodesShutdownRequest

public NodesShutdownRequest(String... nodesIds)
Method Detail

nodesIds

public NodesShutdownRequest nodesIds(String... nodesIds)

delay

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


delay

public TimeValue delay()

delay

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


exit

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


exit

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


validate

public ActionRequestValidationException validate()

readFrom

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

writeTo

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


Copyright © 2009-2012. All Rights Reserved.