Class DeleteSnapshotRequest

All Implemented Interfaces:
Writeable, org.elasticsearch.common.util.concurrent.RefCounted, TaskAwareRequest

public class DeleteSnapshotRequest
extends MasterNodeRequest<DeleteSnapshotRequest>
Delete snapshot request

Delete snapshot request removes snapshots from the repository and cleans up all files that are associated with the snapshots. All files that are shared with at least one other existing snapshot are left intact.

  • Constructor Details

    • DeleteSnapshotRequest

      public DeleteSnapshotRequest()
      Constructs a new delete snapshots request
    • DeleteSnapshotRequest

      public DeleteSnapshotRequest​(java.lang.String repository, java.lang.String... snapshots)
      Constructs a new delete snapshots request with repository and snapshot names
      Parameters:
      repository - repository name
      snapshots - snapshot names
    • DeleteSnapshotRequest

      public DeleteSnapshotRequest​(java.lang.String repository)
      Constructs a new delete snapshots request with repository name
      Parameters:
      repository - repository name
    • DeleteSnapshotRequest

      public DeleteSnapshotRequest​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details