org.elasticsearch.action.support.single.shard
Class SingleShardOperationRequest

java.lang.Object
  extended by org.elasticsearch.action.support.single.shard.SingleShardOperationRequest
All Implemented Interfaces:
ActionRequest, Streamable
Direct Known Subclasses:
ExplainRequest, GetRequest, MultiGetShardRequest

public abstract class SingleShardOperationRequest
extends Object
implements ActionRequest


Field Summary
protected  String index
           
 
Constructor Summary
protected SingleShardOperationRequest()
           
  SingleShardOperationRequest(String index)
           
 
Method Summary
protected  void beforeLocalFork()
           
 String index()
           
 boolean listenerThreaded()
          Should the listener be called on a separate thread if needed.
 SingleShardOperationRequest 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.
 SingleShardOperationRequest operationThreaded(boolean threadedOperation)
          Controls if the operation will be executed on a separate thread when executed locally.
 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
 

Field Detail

index

protected String index
Constructor Detail

SingleShardOperationRequest

protected SingleShardOperationRequest()

SingleShardOperationRequest

public SingleShardOperationRequest(String index)
Method Detail

validate

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

index

public String index()

listenerThreaded

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

Specified by:
listenerThreaded in interface ActionRequest

listenerThreaded

public SingleShardOperationRequest 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 SingleShardOperationRequest operationThreaded(boolean threadedOperation)
Controls if the operation will be executed on a separate thread when executed locally.


beforeLocalFork

protected 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.