类 SnapshotClient

java.lang.Object
org.easysearch.client.SnapshotClient

public final class SnapshotClient
extends java.lang.Object
A wrapper for the RestHighLevelClient that provides methods for accessing the Snapshot API.

See Snapshot API on elastic.co

  • 方法概要

    修饰符和类型 方法 说明
    org.easysearch.action.admin.cluster.repositories.cleanup.CleanupRepositoryResponse cleanupRepository​(org.easysearch.action.admin.cluster.repositories.cleanup.CleanupRepositoryRequest cleanupRepositoryRequest, org.easysearch.client.RequestOptions options)
    Cleans up a snapshot repository.
    org.easysearch.client.Cancellable cleanupRepositoryAsync​(org.easysearch.action.admin.cluster.repositories.cleanup.CleanupRepositoryRequest cleanupRepositoryRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.repositories.cleanup.CleanupRepositoryResponse> listener)
    Asynchronously cleans up a snapshot repository.
    org.easysearch.action.support.master.AcknowledgedResponse clone​(org.easysearch.action.admin.cluster.snapshots.clone.CloneSnapshotRequest cloneSnapshotRequest, org.easysearch.client.RequestOptions options)
    Clones a snapshot.
    org.easysearch.client.Cancellable cloneAsync​(org.easysearch.action.admin.cluster.snapshots.clone.CloneSnapshotRequest cloneSnapshotRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.support.master.AcknowledgedResponse> listener)
    Asynchronously clones a snapshot.
    org.easysearch.action.admin.cluster.snapshots.create.CreateSnapshotResponse create​(org.easysearch.action.admin.cluster.snapshots.create.CreateSnapshotRequest createSnapshotRequest, org.easysearch.client.RequestOptions options)
    Creates a snapshot.
    org.easysearch.client.Cancellable createAsync​(org.easysearch.action.admin.cluster.snapshots.create.CreateSnapshotRequest createSnapshotRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.snapshots.create.CreateSnapshotResponse> listener)
    Asynchronously creates a snapshot.
    org.easysearch.action.support.master.AcknowledgedResponse createRepository​(org.easysearch.action.admin.cluster.repositories.put.PutRepositoryRequest putRepositoryRequest, org.easysearch.client.RequestOptions options)
    Creates a snapshot repository.
    org.easysearch.client.Cancellable createRepositoryAsync​(org.easysearch.action.admin.cluster.repositories.put.PutRepositoryRequest putRepositoryRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.support.master.AcknowledgedResponse> listener)
    Asynchronously creates a snapshot repository.
    org.easysearch.action.support.master.AcknowledgedResponse delete​(org.easysearch.action.admin.cluster.snapshots.delete.DeleteSnapshotRequest deleteSnapshotRequest, org.easysearch.client.RequestOptions options)
    Deletes a snapshot.
    org.easysearch.client.Cancellable deleteAsync​(org.easysearch.action.admin.cluster.snapshots.delete.DeleteSnapshotRequest deleteSnapshotRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.support.master.AcknowledgedResponse> listener)
    Asynchronously deletes a snapshot.
    org.easysearch.action.support.master.AcknowledgedResponse deleteRepository​(org.easysearch.action.admin.cluster.repositories.delete.DeleteRepositoryRequest deleteRepositoryRequest, org.easysearch.client.RequestOptions options)
    Deletes a snapshot repository.
    org.easysearch.client.Cancellable deleteRepositoryAsync​(org.easysearch.action.admin.cluster.repositories.delete.DeleteRepositoryRequest deleteRepositoryRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.support.master.AcknowledgedResponse> listener)
    Asynchronously deletes a snapshot repository.
    org.easysearch.action.admin.cluster.snapshots.get.GetSnapshotsResponse get​(org.easysearch.action.admin.cluster.snapshots.get.GetSnapshotsRequest getSnapshotsRequest, org.easysearch.client.RequestOptions options)
    Get snapshots.
    org.easysearch.client.Cancellable getAsync​(org.easysearch.action.admin.cluster.snapshots.get.GetSnapshotsRequest getSnapshotsRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.snapshots.get.GetSnapshotsResponse> listener)
    Asynchronously get snapshots.
    org.easysearch.action.admin.cluster.repositories.get.GetRepositoriesResponse getRepository​(org.easysearch.action.admin.cluster.repositories.get.GetRepositoriesRequest getRepositoriesRequest, org.easysearch.client.RequestOptions options)
    Gets a list of snapshot repositories.
    org.easysearch.client.Cancellable getRepositoryAsync​(org.easysearch.action.admin.cluster.repositories.get.GetRepositoriesRequest getRepositoriesRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.repositories.get.GetRepositoriesResponse> listener)
    Asynchronously gets a list of snapshot repositories.
    org.easysearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse restore​(org.easysearch.action.admin.cluster.snapshots.restore.RestoreSnapshotRequest restoreSnapshotRequest, org.easysearch.client.RequestOptions options)
    Restores a snapshot.
    org.easysearch.client.Cancellable restoreAsync​(org.easysearch.action.admin.cluster.snapshots.restore.RestoreSnapshotRequest restoreSnapshotRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse> listener)
    Asynchronously restores a snapshot.
    org.easysearch.action.admin.cluster.snapshots.status.SnapshotsStatusResponse status​(org.easysearch.action.admin.cluster.snapshots.status.SnapshotsStatusRequest snapshotsStatusRequest, org.easysearch.client.RequestOptions options)
    Gets the status of requested snapshots.
    org.easysearch.client.Cancellable statusAsync​(org.easysearch.action.admin.cluster.snapshots.status.SnapshotsStatusRequest snapshotsStatusRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.snapshots.status.SnapshotsStatusResponse> listener)
    Asynchronously gets the status of requested snapshots.
    org.easysearch.action.admin.cluster.repositories.verify.VerifyRepositoryResponse verifyRepository​(org.easysearch.action.admin.cluster.repositories.verify.VerifyRepositoryRequest verifyRepositoryRequest, org.easysearch.client.RequestOptions options)
    Verifies a snapshot repository.
    org.easysearch.client.Cancellable verifyRepositoryAsync​(org.easysearch.action.admin.cluster.repositories.verify.VerifyRepositoryRequest verifyRepositoryRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.repositories.verify.VerifyRepositoryResponse> listener)
    Asynchronously verifies a snapshot repository.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 方法详细资料

    • getRepository

      public org.easysearch.action.admin.cluster.repositories.get.GetRepositoriesResponse getRepository​(org.easysearch.action.admin.cluster.repositories.get.GetRepositoriesRequest getRepositoriesRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Gets a list of snapshot repositories. If the list of repositories is empty or it contains a single element "_all", all registered repositories are returned. See Snapshot and Restore API on elastic.co
      参数:
      getRepositoriesRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException - in case there is a problem sending the request or parsing back the response
    • getRepositoryAsync

      public org.easysearch.client.Cancellable getRepositoryAsync​(org.easysearch.action.admin.cluster.repositories.get.GetRepositoriesRequest getRepositoriesRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.repositories.get.GetRepositoriesResponse> listener)
      Asynchronously gets a list of snapshot repositories. If the list of repositories is empty or it contains a single element "_all", all registered repositories are returned. See Snapshot and Restore API on elastic.co
      参数:
      getRepositoriesRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • createRepository

      public org.easysearch.action.support.master.AcknowledgedResponse createRepository​(org.easysearch.action.admin.cluster.repositories.put.PutRepositoryRequest putRepositoryRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Creates a snapshot repository. See Snapshot and Restore API on elastic.co
      参数:
      putRepositoryRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException - in case there is a problem sending the request or parsing back the response
    • createRepositoryAsync

      public org.easysearch.client.Cancellable createRepositoryAsync​(org.easysearch.action.admin.cluster.repositories.put.PutRepositoryRequest putRepositoryRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.support.master.AcknowledgedResponse> listener)
      Asynchronously creates a snapshot repository. See Snapshot and Restore API on elastic.co
      参数:
      putRepositoryRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • deleteRepository

      public org.easysearch.action.support.master.AcknowledgedResponse deleteRepository​(org.easysearch.action.admin.cluster.repositories.delete.DeleteRepositoryRequest deleteRepositoryRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Deletes a snapshot repository. See Snapshot and Restore API on elastic.co
      参数:
      deleteRepositoryRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException - in case there is a problem sending the request or parsing back the response
    • deleteRepositoryAsync

      public org.easysearch.client.Cancellable deleteRepositoryAsync​(org.easysearch.action.admin.cluster.repositories.delete.DeleteRepositoryRequest deleteRepositoryRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.support.master.AcknowledgedResponse> listener)
      Asynchronously deletes a snapshot repository. See Snapshot and Restore API on elastic.co
      参数:
      deleteRepositoryRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • verifyRepository

      public org.easysearch.action.admin.cluster.repositories.verify.VerifyRepositoryResponse verifyRepository​(org.easysearch.action.admin.cluster.repositories.verify.VerifyRepositoryRequest verifyRepositoryRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Verifies a snapshot repository. See Snapshot and Restore API on elastic.co
      参数:
      verifyRepositoryRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException - in case there is a problem sending the request or parsing back the response
    • verifyRepositoryAsync

      public org.easysearch.client.Cancellable verifyRepositoryAsync​(org.easysearch.action.admin.cluster.repositories.verify.VerifyRepositoryRequest verifyRepositoryRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.repositories.verify.VerifyRepositoryResponse> listener)
      Asynchronously verifies a snapshot repository. See Snapshot and Restore API on elastic.co
      参数:
      verifyRepositoryRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • cleanupRepository

      public org.easysearch.action.admin.cluster.repositories.cleanup.CleanupRepositoryResponse cleanupRepository​(org.easysearch.action.admin.cluster.repositories.cleanup.CleanupRepositoryRequest cleanupRepositoryRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Cleans up a snapshot repository. See Snapshot and Restore API on elastic.co
      参数:
      cleanupRepositoryRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException - in case there is a problem sending the request or parsing back the response
    • cleanupRepositoryAsync

      public org.easysearch.client.Cancellable cleanupRepositoryAsync​(org.easysearch.action.admin.cluster.repositories.cleanup.CleanupRepositoryRequest cleanupRepositoryRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.repositories.cleanup.CleanupRepositoryResponse> listener)
      Asynchronously cleans up a snapshot repository. See Snapshot and Restore API on elastic.co
      参数:
      cleanupRepositoryRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • create

      public org.easysearch.action.admin.cluster.snapshots.create.CreateSnapshotResponse create​(org.easysearch.action.admin.cluster.snapshots.create.CreateSnapshotRequest createSnapshotRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      抛出:
      java.io.IOException
    • createAsync

      public org.easysearch.client.Cancellable createAsync​(org.easysearch.action.admin.cluster.snapshots.create.CreateSnapshotRequest createSnapshotRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.snapshots.create.CreateSnapshotResponse> listener)
      Asynchronously creates a snapshot.

      See Snapshot and Restore API on elastic.co

      返回:
      cancellable that may be used to cancel the request
    • clone

      public org.easysearch.action.support.master.AcknowledgedResponse clone​(org.easysearch.action.admin.cluster.snapshots.clone.CloneSnapshotRequest cloneSnapshotRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      抛出:
      java.io.IOException
    • cloneAsync

      public org.easysearch.client.Cancellable cloneAsync​(org.easysearch.action.admin.cluster.snapshots.clone.CloneSnapshotRequest cloneSnapshotRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.support.master.AcknowledgedResponse> listener)
      Asynchronously clones a snapshot.

      See Snapshot and Restore API on elastic.co

      返回:
      cancellable that may be used to cancel the request
    • get

      public org.easysearch.action.admin.cluster.snapshots.get.GetSnapshotsResponse get​(org.easysearch.action.admin.cluster.snapshots.get.GetSnapshotsRequest getSnapshotsRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      参数:
      getSnapshotsRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException - in case there is a problem sending the request or parsing back the response
    • getAsync

      public org.easysearch.client.Cancellable getAsync​(org.easysearch.action.admin.cluster.snapshots.get.GetSnapshotsRequest getSnapshotsRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.snapshots.get.GetSnapshotsResponse> listener)
      Asynchronously get snapshots. See Snapshot and Restore API on elastic.co
      参数:
      getSnapshotsRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • status

      public org.easysearch.action.admin.cluster.snapshots.status.SnapshotsStatusResponse status​(org.easysearch.action.admin.cluster.snapshots.status.SnapshotsStatusRequest snapshotsStatusRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Gets the status of requested snapshots. See Snapshot and Restore API on elastic.co
      参数:
      snapshotsStatusRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException - in case there is a problem sending the request or parsing back the response
    • statusAsync

      public org.easysearch.client.Cancellable statusAsync​(org.easysearch.action.admin.cluster.snapshots.status.SnapshotsStatusRequest snapshotsStatusRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.snapshots.status.SnapshotsStatusResponse> listener)
      Asynchronously gets the status of requested snapshots. See Snapshot and Restore API on elastic.co
      参数:
      snapshotsStatusRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • restore

      public org.easysearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse restore​(org.easysearch.action.admin.cluster.snapshots.restore.RestoreSnapshotRequest restoreSnapshotRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      参数:
      restoreSnapshotRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException - in case there is a problem sending the request or parsing back the response
    • restoreAsync

      public org.easysearch.client.Cancellable restoreAsync​(org.easysearch.action.admin.cluster.snapshots.restore.RestoreSnapshotRequest restoreSnapshotRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse> listener)
      Asynchronously restores a snapshot. See Snapshot and Restore API on elastic.co
      参数:
      restoreSnapshotRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • delete

      public org.easysearch.action.support.master.AcknowledgedResponse delete​(org.easysearch.action.admin.cluster.snapshots.delete.DeleteSnapshotRequest deleteSnapshotRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      参数:
      deleteSnapshotRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException - in case there is a problem sending the request or parsing back the response
    • deleteAsync

      public org.easysearch.client.Cancellable deleteAsync​(org.easysearch.action.admin.cluster.snapshots.delete.DeleteSnapshotRequest deleteSnapshotRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.support.master.AcknowledgedResponse> listener)
      Asynchronously deletes a snapshot. See Snapshot and Restore API on elastic.co
      参数:
      deleteSnapshotRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request