org.elasticsearch.action.support.single.custom
Class SingleCustomOperationRequest

java.lang.Object
  extended by org.elasticsearch.action.support.single.custom.SingleCustomOperationRequest
All Implemented Interfaces:
ActionRequest, Streamable
Direct Known Subclasses:
AnalyzeRequest, PercolateRequest

public abstract class SingleCustomOperationRequest
extends Object
implements ActionRequest


Constructor Summary
protected SingleCustomOperationRequest()
           
 
Method Summary
 void beforeLocalFork()
           
 boolean listenerThreaded()
          Should the listener be called on a separate thread if needed.
 SingleCustomOperationRequest listenerThreaded(boolean threadedListener)
          Sets if the response listener be executed on a thread or not.
 boolean operationThreaded()
          Controls if the operation will be executed on a separate thread when executed locally.
 SingleCustomOperationRequest operationThreaded(boolean threadedOperation)
          Controls if the operation will be executed on a separate thread when executed locally.
 SingleCustomOperationRequest preferLocal(boolean preferLocal)
          if this operation hits a node with a local relevant shard, should it be preferred to be executed on, or just do plain round robin.
 boolean preferLocalShard()
          if this operation hits a node with a local relevant shard, should it be preferred to be executed on, or just do plain round robin.
 void readFrom(StreamInput in)
           
 ActionRequestValidationException validate()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleCustomOperationRequest

protected SingleCustomOperationRequest()
Method Detail

validate

public ActionRequestValidationException validate()
Specified by:
validate in interface ActionRequest

listenerThreaded

public boolean listenerThreaded()
Should the listener be called on a separate thread if needed.

Specified by:
listenerThreaded in interface ActionRequest

listenerThreaded

public SingleCustomOperationRequest listenerThreaded(boolean threadedListener)
Description copied from interface: ActionRequest
Sets if the response listener be executed on a thread or not.

Specified by:
listenerThreaded in interface ActionRequest

operationThreaded

public boolean operationThreaded()
Controls if the operation will be executed on a separate thread when executed locally.


operationThreaded

public SingleCustomOperationRequest operationThreaded(boolean threadedOperation)
Controls if the operation will be executed on a separate thread when executed locally.


preferLocal

public SingleCustomOperationRequest preferLocal(boolean preferLocal)
if this operation hits a node with a local relevant shard, should it be preferred to be executed on, or just do plain round robin. Defaults to true


preferLocalShard

public boolean preferLocalShard()
if this operation hits a node with a local relevant shard, should it be preferred to be executed on, or just do plain round robin. Defaults to true


beforeLocalFork

public void beforeLocalFork()

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.