public abstract class InstanceShardOperationRequest<Request extends InstanceShardOperationRequest<Request>> extends ActionRequest implements IndicesRequest
TransportRequest.EmptyIndicesRequest.Replaceable| Modifier and Type | Field and Description |
|---|---|
static TimeValue |
DEFAULT_TIMEOUT |
protected java.lang.String |
index |
protected ShardId |
shardId |
protected TimeValue |
timeout |
| Modifier | Constructor and Description |
|---|---|
protected |
InstanceShardOperationRequest() |
|
InstanceShardOperationRequest(java.lang.String index) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
concreteIndex() |
java.lang.String |
index() |
Request |
index(java.lang.String index) |
java.lang.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)
Set this object's fields from a StreamInput.
|
TimeValue |
timeout() |
Request |
timeout(java.lang.String timeout)
A timeout to wait if the index operation can't be performed immediately.
|
Request |
timeout(TimeValue timeout)
A timeout to wait if the index operation can't be performed immediately.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
getShouldStoreResultcreateTask, getDescription, getParentTask, setParentTask, setParentTaskremoteAddress, remoteAddresspublic static final TimeValue DEFAULT_TIMEOUT
protected TimeValue timeout
protected java.lang.String index
protected ShardId shardId
protected InstanceShardOperationRequest()
public InstanceShardOperationRequest(java.lang.String index)
public ActionRequestValidationException validate()
validate in class ActionRequestpublic java.lang.String index()
public java.lang.String[] indices()
IndicesRequestindices in interface IndicesRequestpublic IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic final Request index(java.lang.String index)
public TimeValue timeout()
public final Request timeout(TimeValue timeout)
public final Request timeout(java.lang.String timeout)
public java.lang.String concreteIndex()
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class ActionRequestjava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class ActionRequestjava.io.IOException