org.elasticsearch.action.support.broadcast
Class BroadcastOperationRequest

java.lang.Object
  extended by org.elasticsearch.action.support.broadcast.BroadcastOperationRequest
All Implemented Interfaces:
ActionRequest, Streamable
Direct Known Subclasses:
BroadcastPingRequest, ClearIndicesCacheRequest, CountRequest, FlushRequest, GatewaySnapshotRequest, IndicesStatusRequest, OptimizeRequest, RefreshRequest

public abstract class BroadcastOperationRequest
extends java.lang.Object
implements ActionRequest


Field Summary
protected  java.lang.String[] indices
           
 
Constructor Summary
protected BroadcastOperationRequest()
           
protected BroadcastOperationRequest(java.lang.String[] indices)
           
 
Method Summary
protected  void beforeLocalFork()
           
 java.lang.String[] indices()
           
 BroadcastOperationRequest indices(java.lang.String[] indices)
           
 boolean listenerThreaded()
          Should the listener be called on a separate thread if needed.
 BroadcastOperationRequest listenerThreaded(boolean listenerThreaded)
          Should the listener be called on a separate thread if needed.
 BroadcastOperationThreading operationThreading()
          Controls the operation threading model.
 BroadcastOperationRequest operationThreading(BroadcastOperationThreading operationThreading)
          Controls the operation threading model.
 BroadcastOperationRequest operationThreading(java.lang.String operationThreading)
          Controls the operation threading model.
 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

indices

protected java.lang.String[] indices
Constructor Detail

BroadcastOperationRequest

protected BroadcastOperationRequest()

BroadcastOperationRequest

protected BroadcastOperationRequest(java.lang.String[] indices)
Method Detail

indices

public java.lang.String[] indices()

indices

public BroadcastOperationRequest indices(java.lang.String[] indices)

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 BroadcastOperationRequest listenerThreaded(boolean listenerThreaded)
Should the listener be called on a separate thread if needed.

Specified by:
listenerThreaded in interface ActionRequest

operationThreading

public BroadcastOperationThreading operationThreading()
Controls the operation threading model.


operationThreading

public BroadcastOperationRequest operationThreading(BroadcastOperationThreading operationThreading)
Controls the operation threading model.


operationThreading

public BroadcastOperationRequest operationThreading(java.lang.String operationThreading)
Controls the operation threading model.


beforeLocalFork

protected void beforeLocalFork()

writeTo

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

readFrom

public void readFrom(StreamInput in)
              throws java.io.IOException
Specified by:
readFrom in interface Streamable
Throws:
java.io.IOException