public abstract class InstanceShardOperationRequest<Request extends InstanceShardOperationRequest<Request>> extends ActionRequest<Request> implements IndicesRequest
TransportRequest.Empty
IndicesRequest.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.
|
getShouldStoreResult
createTask, getDescription, getParentTask, setParentTask, setParentTask
remoteAddress, remoteAddress
public 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 ActionRequest<Request extends InstanceShardOperationRequest<Request>>
public java.lang.String index()
public java.lang.String[] indices()
IndicesRequest
indices
in interface IndicesRequest
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public 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
Streamable
readFrom
in interface Streamable
readFrom
in class ActionRequest<Request extends InstanceShardOperationRequest<Request>>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class ActionRequest<Request extends InstanceShardOperationRequest<Request>>
java.io.IOException