public abstract class SingleCustomOperationRequest<T extends SingleCustomOperationRequest> extends ActionRequest<T> implements IndicesRequest
TransportRequest.Empty
IndicesRequest.Replaceable
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, listenerThreaded
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
protected 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()
IndicesRequest
indicesOptions
in interface IndicesRequest
public String[] indices()
IndicesRequest
indices
in interface IndicesRequest
public boolean preferLocalShard()
public void beforeLocalFork()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class ActionRequest<T extends SingleCustomOperationRequest>
IOException
protected void readIndex(StreamInput in) throws IOException
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class ActionRequest<T extends SingleCustomOperationRequest>
IOException
protected void writeIndex(StreamOutput out) throws IOException
IOException
Copyright © 2009–2015. All rights reserved.