public abstract class IndexReplicationOperationRequest<T extends IndexReplicationOperationRequest> extends ActionRequest<T> implements IndicesRequest
TransportIndexReplicationOperationAction.
Since the corresponding action is internal that gets always executed locally, this request never gets sent over the transport.
The specified index is expected to be a concrete index. Relies on input validation done by the caller actions.TransportRequest.EmptyIndicesRequest.Replaceableheaders| Modifier | Constructor and Description |
|---|---|
protected |
IndexReplicationOperationRequest(String index,
TimeValue timeout,
ReplicationType replicationType,
WriteConsistencyLevel consistencyLevel,
String[] originalIndices,
IndicesOptions originalIndicesOptions,
ActionRequest request) |
| Modifier and Type | Method and Description |
|---|---|
WriteConsistencyLevel |
consistencyLevel() |
String |
index() |
String[] |
indices()
Returns the array of indices that the action relates to
|
IndicesOptions |
indicesOptions()
Returns the indices options used to resolve indices.
|
void |
readFrom(StreamInput in) |
ReplicationType |
replicationType() |
TimeValue |
timeout() |
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
listenerThreaded, listenerThreadedputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextprotected IndexReplicationOperationRequest(String index, TimeValue timeout, ReplicationType replicationType, WriteConsistencyLevel consistencyLevel, String[] originalIndices, IndicesOptions originalIndicesOptions, ActionRequest request)
public ActionRequestValidationException validate()
validate in class ActionRequest<T extends IndexReplicationOperationRequest>public TimeValue timeout()
public String index()
public String[] indices()
IndicesRequestindices in interface IndicesRequestpublic IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic ReplicationType replicationType()
public WriteConsistencyLevel consistencyLevel()
public final void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionRequest<T extends IndexReplicationOperationRequest>IOExceptionpublic final void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionRequest<T extends IndexReplicationOperationRequest>IOExceptionCopyright © 2009–2016. All rights reserved.