org.elasticsearch.action.admin.cluster.node.restart
Class NodesRestartRequest
java.lang.Object
org.elasticsearch.action.support.nodes.NodesOperationRequest
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).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodesRestartRequest
protected NodesRestartRequest()
NodesRestartRequest
public NodesRestartRequest(java.lang.String... nodesIds)
- Restarts down nodes based on the nodes ids specified. If none are passed, all
nodes will be shutdown.
delay
public NodesRestartRequest delay(TimeValue delay)
- The delay for the restart to occur. Defaults to 1s.
delay
public NodesRestartRequest delay(java.lang.String delay)
- The delay for the restart to occur. Defaults to 1s.
delay
public TimeValue delay()
readFrom
public void readFrom(StreamInput in)
throws java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Overrides:
readFrom
in class NodesOperationRequest
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Overrides:
writeTo
in class NodesOperationRequest
- Throws:
java.io.IOException