org.elasticsearch.action.admin.cluster.node.shutdown
Class NodesShutdownRequest
java.lang.Object
org.elasticsearch.action.support.master.MasterNodeOperationRequest
org.elasticsearch.action.admin.cluster.node.shutdown.NodesShutdownRequest
- All Implemented Interfaces:
- ActionRequest, Streamable
public class NodesShutdownRequest
- extends MasterNodeOperationRequest
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodesShutdownRequest
public NodesShutdownRequest(java.lang.String... nodesIds)
nodesIds
public NodesShutdownRequest nodesIds(java.lang.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(java.lang.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 java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Overrides:
readFrom
in class MasterNodeOperationRequest
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Overrides:
writeTo
in class MasterNodeOperationRequest
- Throws:
java.io.IOException