public class NodesShutdownRequest extends MasterNodeOperationRequest<NodesShutdownRequest>
TransportRequest.Empty
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
Constructor and Description |
---|
NodesShutdownRequest(String... nodesIds) |
Modifier and Type | Method and Description |
---|---|
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) |
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
listenerThreaded, listenerThreaded
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
public NodesShutdownRequest(String... nodesIds)
public NodesShutdownRequest nodesIds(String... nodesIds)
public NodesShutdownRequest delay(TimeValue delay)
public TimeValue delay()
public NodesShutdownRequest delay(String delay)
public NodesShutdownRequest exit(boolean exit)
public boolean exit()
public ActionRequestValidationException validate()
validate
in class ActionRequest<NodesShutdownRequest>
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class MasterNodeOperationRequest<NodesShutdownRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class MasterNodeOperationRequest<NodesShutdownRequest>
IOException
Copyright © 2009–2015. All rights reserved.