org.elasticsearch.action.support.replication
Class IndicesReplicationOperationRequest

java.lang.Object
  extended by org.elasticsearch.action.support.replication.IndicesReplicationOperationRequest
All Implemented Interfaces:
ActionRequest, Streamable
Direct Known Subclasses:
DeleteByQueryRequest

public class IndicesReplicationOperationRequest
extends Object
implements ActionRequest


Field Summary
protected  WriteConsistencyLevel consistencyLevel
           
protected  String[] indices
           
protected  ReplicationType replicationType
           
protected  TimeValue timeout
           
 
Constructor Summary
IndicesReplicationOperationRequest()
           
 
Method Summary
 WriteConsistencyLevel consistencyLevel()
           
 String[] indices()
           
 IndicesReplicationOperationRequest indices(String[] indices)
           
 boolean listenerThreaded()
          Should the listener be called on a separate thread if needed.
 IndicesReplicationOperationRequest listenerThreaded(boolean threadedListener)
          Should the listener be called on a separate thread if needed.
 void readFrom(StreamInput in)
           
 ReplicationType replicationType()
           
 String routing()
           
 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

timeout

protected TimeValue timeout

indices

protected String[] indices

replicationType

protected ReplicationType replicationType

consistencyLevel

protected WriteConsistencyLevel consistencyLevel
Constructor Detail

IndicesReplicationOperationRequest

public IndicesReplicationOperationRequest()
Method Detail

timeout

public TimeValue timeout()

indices

public String[] indices()

indices

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

Specified by:
listenerThreaded in interface ActionRequest

replicationType

public ReplicationType replicationType()

consistencyLevel

public WriteConsistencyLevel consistencyLevel()

routing

public String routing()

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.