Class CloneSnapshotRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.master.MasterNodeRequest<CloneSnapshotRequest>
org.elasticsearch.action.admin.cluster.snapshots.clone.CloneSnapshotRequest
- All Implemented Interfaces:
IndicesRequest,IndicesRequest.Replaceable,Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject,TaskAwareRequest
public class CloneSnapshotRequest extends MasterNodeRequest<CloneSnapshotRequest> implements IndicesRequest.Replaceable, org.elasticsearch.common.xcontent.ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.ReplaceableNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout -
Constructor Summary
Constructors Constructor Description CloneSnapshotRequest(java.lang.String repository, java.lang.String source, java.lang.String target, java.lang.String[] indices)Creates a clone snapshot request for cloning the given source snapshot's indices into the given target snapshot on the given repository.CloneSnapshotRequest(StreamInput in) -
Method Summary
Modifier and Type Method Description java.lang.String[]indices()Returns the array of indices that the action relates toCloneSnapshotRequestindices(java.lang.String... indices)Sets the indices that the action relates to.IndicesOptionsindicesOptions()Returns the indices options used to resolve indices.CloneSnapshotRequestindicesOptions(IndicesOptions indicesOptions)java.lang.Stringrepository()java.lang.Stringsource()java.lang.Stringtarget()java.lang.StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)ActionRequestValidationExceptionvalidate()voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
masterNodeTimeout, masterNodeTimeout, masterNodeTimeoutMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTaskMethods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddressMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
CloneSnapshotRequest
- Throws:
java.io.IOException
-
CloneSnapshotRequest
public CloneSnapshotRequest(java.lang.String repository, java.lang.String source, java.lang.String target, java.lang.String[] indices)Creates a clone snapshot request for cloning the given source snapshot's indices into the given target snapshot on the given repository.- Parameters:
repository- repository that source snapshot belongs to and that the target snapshot will be created insource- source snapshot nametarget- target snapshot nameindices- indices to clone from source to target
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classMasterNodeRequest<CloneSnapshotRequest>- Throws:
java.io.IOException
-
validate
- Specified by:
validatein classActionRequest
-
indices
public java.lang.String[] indices()Description copied from interface:IndicesRequestReturns the array of indices that the action relates to- Specified by:
indicesin interfaceIndicesRequest
-
indicesOptions
Description copied from interface:IndicesRequestReturns the indices options used to resolve indices. They tell for instance whether a single index is accepted, whether an empty array will be converted to _all, and how wildcards will be expanded if needed.- Specified by:
indicesOptionsin interfaceIndicesRequest
-
indices
Description copied from interface:IndicesRequest.ReplaceableSets the indices that the action relates to.- Specified by:
indicesin interfaceIndicesRequest.Replaceable
-
indicesOptions
-
repository
public java.lang.String repository() -
target
public java.lang.String target() -
source
public java.lang.String source() -
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-