Class CloneSnapshotRequest

All Implemented Interfaces:
IndicesRequest, IndicesRequest.Replaceable, Writeable, org.elasticsearch.common.util.concurrent.RefCounted, 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
  • Constructor Details

    • CloneSnapshotRequest

      public CloneSnapshotRequest​(StreamInput in) throws java.io.IOException
      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 in
      source - source snapshot name
      target - target snapshot name
      indices - indices to clone from source to target
  • Method Details