public abstract class SingleCustomOperationRequest<T extends SingleCustomOperationRequest> extends ActionRequest<T> implements IndicesRequest
TransportRequest.EmptyIndicesRequest.Replaceableheaders| Modifier | Constructor and Description |
|---|---|
protected |
SingleCustomOperationRequest() |
protected |
SingleCustomOperationRequest(ActionRequest request) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeLocalFork() |
String |
index() |
T |
index(String 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.
|
T |
preferLocal(boolean preferLocal)
if this operation hits a node with a local relevant shard, should it be preferred
to be executed on, or just do plain round robin.
|
boolean |
preferLocalShard()
if this operation hits a node with a local relevant shard, should it be preferred
to be executed on, or just do plain round robin.
|
void |
readFrom(StreamInput in) |
protected void |
readIndex(StreamInput in) |
ActionRequestValidationException |
validate() |
protected void |
writeIndex(StreamOutput out) |
void |
writeTo(StreamOutput out) |
listenerThreaded, listenerThreadedputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextprotected SingleCustomOperationRequest()
protected SingleCustomOperationRequest(ActionRequest request)
public ActionRequestValidationException validate()
validate in class ActionRequest<T extends SingleCustomOperationRequest>public boolean operationThreaded()
public final T operationThreaded(boolean threadedOperation)
public final T preferLocal(boolean preferLocal)
public String index()
public IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic String[] indices()
IndicesRequestindices in interface IndicesRequestpublic boolean preferLocalShard()
public void beforeLocalFork()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionRequest<T extends SingleCustomOperationRequest>IOExceptionprotected void readIndex(StreamInput in) throws IOException
IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionRequest<T extends SingleCustomOperationRequest>IOExceptionprotected void writeIndex(StreamOutput out) throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.