public abstract class SingleShardOperationRequest<T extends SingleShardOperationRequest> extends ActionRequest<T> implements IndicesRequest
TransportRequest.Empty
IndicesRequest.Replaceable
Modifier and Type | Field and Description |
---|---|
protected String |
index |
static IndicesOptions |
INDICES_OPTIONS |
Modifier | Constructor and Description |
---|---|
protected |
SingleShardOperationRequest() |
protected |
SingleShardOperationRequest(ActionRequest request) |
protected |
SingleShardOperationRequest(ActionRequest request,
String index) |
protected |
SingleShardOperationRequest(String index) |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeLocalFork() |
String |
index() |
T |
index(String index)
Sets the index.
|
String[] |
indices()
Returns the array of indices that the action relates to
|
IndicesOptions |
indicesOptions()
Returns the indices options used to resolve indices.
|
boolean |
operationThreaded()
Controls if the operation will be executed on a separate thread when executed locally.
|
T |
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) |
listenerThreaded, listenerThreaded
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
protected String index
public static final IndicesOptions INDICES_OPTIONS
protected SingleShardOperationRequest()
protected SingleShardOperationRequest(String index)
protected SingleShardOperationRequest(ActionRequest request)
protected SingleShardOperationRequest(ActionRequest request, String index)
public ActionRequestValidationException validate()
validate
in class ActionRequest<T extends SingleShardOperationRequest>
public String index()
public String[] indices()
IndicesRequest
indices
in interface IndicesRequest
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public boolean operationThreaded()
public final T operationThreaded(boolean threadedOperation)
protected void beforeLocalFork()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class ActionRequest<T extends SingleShardOperationRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class ActionRequest<T extends SingleShardOperationRequest>
IOException
Copyright © 2009–2015. All rights reserved.