public class ShrinkRequest extends AcknowledgedRequest<ShrinkRequest> implements IndicesRequest
TransportRequest.Empty
IndicesRequest.Replaceable
Modifier and Type | Field and Description |
---|---|
static ObjectParser<ShrinkRequest,ParseFieldMatcherSupplier> |
PARSER |
DEFAULT_ACK_TIMEOUT, timeout
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
Constructor and Description |
---|
ShrinkRequest(java.lang.String targetIndex,
java.lang.String sourceindex) |
Modifier and Type | Method and Description |
---|---|
CreateIndexRequest |
getShrinkIndexRequest()
Returns the
CreateIndexRequest for the shrink index |
java.lang.String |
getSourceIndex()
Returns the source index name
|
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.
|
void |
setShrinkIndex(CreateIndexRequest shrinkIndexRequest) |
void |
setSourceIndex(java.lang.String index) |
void |
source(BytesReference source) |
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
ackTimeout, readTimeout, timeout, timeout, timeout, writeTimeout
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
getShouldPersistResult
createTask, getDescription, getParentTask, setParentTask, setParentTask
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
masterNodeTimeout
public static ObjectParser<ShrinkRequest,ParseFieldMatcherSupplier> PARSER
public ShrinkRequest(java.lang.String targetIndex, java.lang.String sourceindex)
public ActionRequestValidationException validate()
validate
in class ActionRequest<ShrinkRequest>
public void setSourceIndex(java.lang.String index)
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class MasterNodeRequest<ShrinkRequest>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class MasterNodeRequest<ShrinkRequest>
java.io.IOException
public java.lang.String[] indices()
IndicesRequest
indices
in interface IndicesRequest
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public void setShrinkIndex(CreateIndexRequest shrinkIndexRequest)
public CreateIndexRequest getShrinkIndexRequest()
CreateIndexRequest
for the shrink indexpublic java.lang.String getSourceIndex()
public void source(BytesReference source)