org.elasticsearch.action.support.nodes
Class NodesOperationRequest

java.lang.Object
  extended by 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
           
 
Constructor Summary
protected NodesOperationRequest()
           
protected NodesOperationRequest(java.lang.String... nodesIds)
           
 
Method Summary
 boolean listenerThreaded()
          Should the response listener be executed on a thread or not.
 NodesOperationRequest listenerThreaded(boolean listenerThreaded)
          Sets if the response listener be executed on a thread or not.
 java.lang.String[] nodesIds()
           
 NodesOperationRequest nodesIds(java.lang.String... nodesIds)
           
 void readFrom(StreamInput in)
           
 TimeValue timeout()
           
 NodesOperationRequest timeout(TimeValue timeout)
           
 ActionRequestValidationException validate()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_NODES

public static java.lang.String[] ALL_NODES
Constructor Detail

NodesOperationRequest

protected NodesOperationRequest()

NodesOperationRequest

protected NodesOperationRequest(java.lang.String... nodesIds)
Method Detail

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