org.elasticsearch.action.support.nodes
Class NodesOperationRequest
java.lang.Object
org.elasticsearch.action.support.nodes.NodesOperationRequest
- All Implemented Interfaces:
- ActionRequest, Streamable
- Direct Known Subclasses:
- NodesInfoRequest, NodesRestartRequest, NodesStatsRequest
public abstract class NodesOperationRequest
- extends java.lang.Object
- implements ActionRequest
Field Summary |
static java.lang.String[] |
ALL_NODES
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALL_NODES
public static java.lang.String[] ALL_NODES
NodesOperationRequest
protected NodesOperationRequest()
NodesOperationRequest
protected NodesOperationRequest(java.lang.String... nodesIds)
listenerThreaded
public NodesOperationRequest listenerThreaded(boolean listenerThreaded)
- Description copied from interface:
ActionRequest
- Sets if the response listener be executed on a thread or not.
- Specified by:
listenerThreaded
in interface ActionRequest
listenerThreaded
public boolean listenerThreaded()
- Description copied from interface:
ActionRequest
- Should the response listener be executed on a thread or not.
When not executing on a thread, it will either be executed on the calling thread, or
on an expensive, IO based, thread.
- Specified by:
listenerThreaded
in interface ActionRequest
nodesIds
public java.lang.String[] nodesIds()
nodesIds
public NodesOperationRequest nodesIds(java.lang.String... nodesIds)
timeout
public TimeValue timeout()
timeout
public NodesOperationRequest timeout(TimeValue timeout)
validate
public ActionRequestValidationException validate()
- Specified by:
validate
in interface ActionRequest
readFrom
public void readFrom(StreamInput in)
throws java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
java.io.IOException