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:
NodesHotThreadsRequest, NodesInfoRequest, NodesRestartRequest, NodesStatsRequest

public abstract class NodesOperationRequest
extends Object
implements ActionRequest


Field Summary
static String[] ALL_NODES
           
 
Constructor Summary
protected NodesOperationRequest()
           
protected NodesOperationRequest(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.
 String[] nodesIds()
           
 NodesOperationRequest nodesIds(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 String[] ALL_NODES
Constructor Detail

NodesOperationRequest

protected NodesOperationRequest()

NodesOperationRequest

protected NodesOperationRequest(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 String[] nodesIds()

nodesIds

public NodesOperationRequest nodesIds(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 IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.