public abstract class InstanceShardOperationRequest<T extends InstanceShardOperationRequest> extends ActionRequest<T> implements IndicesRequest
TransportRequest.EmptyIndicesRequest.Replaceable| Modifier and Type | Field and Description |
|---|---|
static TimeValue |
DEFAULT_TIMEOUT |
protected String |
index |
protected int |
shardId |
protected TimeValue |
timeout |
headers| Modifier | Constructor and Description |
|---|---|
protected |
InstanceShardOperationRequest() |
|
InstanceShardOperationRequest(String index) |
| Modifier and Type | Method and Description |
|---|---|
String |
concreteIndex() |
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.
|
void |
readFrom(StreamInput in) |
TimeValue |
timeout() |
T |
timeout(String timeout)
A timeout to wait if the index operation can't be performed immediately.
|
T |
timeout(TimeValue timeout)
A timeout to wait if the index operation can't be performed immediately.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
createTask, getDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic static final TimeValue DEFAULT_TIMEOUT
protected TimeValue timeout
protected String index
protected int shardId
protected InstanceShardOperationRequest()
public InstanceShardOperationRequest(String index)
public ActionRequestValidationException validate()
validate in class ActionRequest<T extends InstanceShardOperationRequest>public String index()
public String[] indices()
IndicesRequestindices in interface IndicesRequestpublic IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic TimeValue timeout()
public final T timeout(TimeValue timeout)
public final T timeout(String timeout)
public String concreteIndex()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionRequest<T extends InstanceShardOperationRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionRequest<T extends InstanceShardOperationRequest>IOExceptionCopyright © 2009–2017. All rights reserved.