Package org.elasticsearch.client
Class SnapshotClient
java.lang.Object
org.elasticsearch.client.SnapshotClient
Deprecated.
The High Level Rest Client is deprecated in favor of the
Elasticsearch Java API Client
A wrapper for the
RestHighLevelClient
that provides methods for accessing the Snapshot API.
-
Method Summary
Modifier and TypeMethodDescriptioncleanupRepository
(CleanupRepositoryRequest cleanupRepositoryRequest, RequestOptions options) Deprecated.Cleans up a snapshot repository.cleanupRepositoryAsync
(CleanupRepositoryRequest cleanupRepositoryRequest, RequestOptions options, ActionListener<CleanupRepositoryResponse> listener) Deprecated.Asynchronously cleans up a snapshot repository.clone
(CloneSnapshotRequest cloneSnapshotRequest, RequestOptions options) Deprecated.Clones a snapshot.cloneAsync
(CloneSnapshotRequest cloneSnapshotRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously clones a snapshot.create
(CreateSnapshotRequest createSnapshotRequest, RequestOptions options) Deprecated.Creates a snapshot.createAsync
(CreateSnapshotRequest createSnapshotRequest, RequestOptions options, ActionListener<CreateSnapshotResponse> listener) Deprecated.Asynchronously creates a snapshot.createRepository
(PutRepositoryRequest putRepositoryRequest, RequestOptions options) Deprecated.Creates a snapshot repository.createRepositoryAsync
(PutRepositoryRequest putRepositoryRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously creates a snapshot repository.delete
(DeleteSnapshotRequest deleteSnapshotRequest, RequestOptions options) Deprecated.Deletes a snapshot.deleteAsync
(DeleteSnapshotRequest deleteSnapshotRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously deletes a snapshot.deleteRepository
(DeleteRepositoryRequest deleteRepositoryRequest, RequestOptions options) Deprecated.Deletes a snapshot repository.deleteRepositoryAsync
(DeleteRepositoryRequest deleteRepositoryRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously deletes a snapshot repository.get
(GetSnapshotsRequest getSnapshotsRequest, RequestOptions options) Deprecated.Get snapshots.getAsync
(GetSnapshotsRequest getSnapshotsRequest, RequestOptions options, ActionListener<GetSnapshotsResponse> listener) Deprecated.Asynchronously get snapshots.getRepository
(GetRepositoriesRequest getRepositoriesRequest, RequestOptions options) Deprecated.Gets a list of snapshot repositories.getRepositoryAsync
(GetRepositoriesRequest getRepositoriesRequest, RequestOptions options, ActionListener<GetRepositoriesResponse> listener) Deprecated.Asynchronously gets a list of snapshot repositories.restore
(RestoreSnapshotRequest restoreSnapshotRequest, RequestOptions options) Deprecated.Restores a snapshot.restoreAsync
(RestoreSnapshotRequest restoreSnapshotRequest, RequestOptions options, ActionListener<RestoreSnapshotResponse> listener) Deprecated.Asynchronously restores a snapshot.status
(SnapshotsStatusRequest snapshotsStatusRequest, RequestOptions options) Deprecated.Gets the status of requested snapshots.statusAsync
(SnapshotsStatusRequest snapshotsStatusRequest, RequestOptions options, ActionListener<SnapshotsStatusResponse> listener) Deprecated.Asynchronously gets the status of requested snapshots.verifyRepository
(VerifyRepositoryRequest verifyRepositoryRequest, RequestOptions options) Deprecated.Verifies a snapshot repository.verifyRepositoryAsync
(VerifyRepositoryRequest verifyRepositoryRequest, RequestOptions options, ActionListener<VerifyRepositoryResponse> listener) Deprecated.Asynchronously verifies a snapshot repository.
-
Method Details
-
getRepository
public GetRepositoriesResponse getRepository(GetRepositoriesRequest getRepositoriesRequest, RequestOptions options) throws IOException Deprecated.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- Parameters:
getRepositoriesRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getRepositoryAsync
public Cancellable getRepositoryAsync(GetRepositoriesRequest getRepositoriesRequest, RequestOptions options, ActionListener<GetRepositoriesResponse> listener) Deprecated.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- Parameters:
getRepositoriesRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
createRepository
public AcknowledgedResponse createRepository(PutRepositoryRequest putRepositoryRequest, RequestOptions options) throws IOException Deprecated.Creates a snapshot repository. See Snapshot and Restore API on elastic.co- Parameters:
putRepositoryRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
createRepositoryAsync
public Cancellable createRepositoryAsync(PutRepositoryRequest putRepositoryRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously creates a snapshot repository. See Snapshot and Restore API on elastic.co- Parameters:
putRepositoryRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteRepository
public AcknowledgedResponse deleteRepository(DeleteRepositoryRequest deleteRepositoryRequest, RequestOptions options) throws IOException Deprecated.Deletes a snapshot repository. See Snapshot and Restore API on elastic.co- Parameters:
deleteRepositoryRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
deleteRepositoryAsync
public Cancellable deleteRepositoryAsync(DeleteRepositoryRequest deleteRepositoryRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously deletes a snapshot repository. See Snapshot and Restore API on elastic.co- Parameters:
deleteRepositoryRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
verifyRepository
public VerifyRepositoryResponse verifyRepository(VerifyRepositoryRequest verifyRepositoryRequest, RequestOptions options) throws IOException Deprecated.Verifies a snapshot repository. See Snapshot and Restore API on elastic.co- Parameters:
verifyRepositoryRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
verifyRepositoryAsync
public Cancellable verifyRepositoryAsync(VerifyRepositoryRequest verifyRepositoryRequest, RequestOptions options, ActionListener<VerifyRepositoryResponse> listener) Deprecated.Asynchronously verifies a snapshot repository. See Snapshot and Restore API on elastic.co- Parameters:
verifyRepositoryRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
cleanupRepository
public CleanupRepositoryResponse cleanupRepository(CleanupRepositoryRequest cleanupRepositoryRequest, RequestOptions options) throws IOException Deprecated.Cleans up a snapshot repository. See Snapshot and Restore API on elastic.co- Parameters:
cleanupRepositoryRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
cleanupRepositoryAsync
public Cancellable cleanupRepositoryAsync(CleanupRepositoryRequest cleanupRepositoryRequest, RequestOptions options, ActionListener<CleanupRepositoryResponse> listener) Deprecated.Asynchronously cleans up a snapshot repository. See Snapshot and Restore API on elastic.co- Parameters:
cleanupRepositoryRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
create
public CreateSnapshotResponse create(CreateSnapshotRequest createSnapshotRequest, RequestOptions options) throws IOException Deprecated.Creates a snapshot.- Throws:
IOException
-
createAsync
public Cancellable createAsync(CreateSnapshotRequest createSnapshotRequest, RequestOptions options, ActionListener<CreateSnapshotResponse> listener) Deprecated.Asynchronously creates a snapshot.- Returns:
- cancellable that may be used to cancel the request
-
clone
public AcknowledgedResponse clone(CloneSnapshotRequest cloneSnapshotRequest, RequestOptions options) throws IOException Deprecated.Clones a snapshot.- Throws:
IOException
-
cloneAsync
public Cancellable cloneAsync(CloneSnapshotRequest cloneSnapshotRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously clones a snapshot.- Returns:
- cancellable that may be used to cancel the request
-
get
public GetSnapshotsResponse get(GetSnapshotsRequest getSnapshotsRequest, RequestOptions options) throws IOException Deprecated.Get snapshots. See Snapshot and Restore API on elastic.co- Parameters:
getSnapshotsRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getAsync
public Cancellable getAsync(GetSnapshotsRequest getSnapshotsRequest, RequestOptions options, ActionListener<GetSnapshotsResponse> listener) Deprecated.Asynchronously get snapshots. See Snapshot and Restore API on elastic.co- Parameters:
getSnapshotsRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
status
public SnapshotsStatusResponse status(SnapshotsStatusRequest snapshotsStatusRequest, RequestOptions options) throws IOException Deprecated.Gets the status of requested snapshots. See Snapshot and Restore API on elastic.co- Parameters:
snapshotsStatusRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
statusAsync
public Cancellable statusAsync(SnapshotsStatusRequest snapshotsStatusRequest, RequestOptions options, ActionListener<SnapshotsStatusResponse> listener) Deprecated.Asynchronously gets the status of requested snapshots. See Snapshot and Restore API on elastic.co- Parameters:
snapshotsStatusRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
restore
public RestoreSnapshotResponse restore(RestoreSnapshotRequest restoreSnapshotRequest, RequestOptions options) throws IOException Deprecated.Restores a snapshot. See Snapshot and Restore API on elastic.co- Parameters:
restoreSnapshotRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
restoreAsync
public Cancellable restoreAsync(RestoreSnapshotRequest restoreSnapshotRequest, RequestOptions options, ActionListener<RestoreSnapshotResponse> listener) Deprecated.Asynchronously restores a snapshot. See Snapshot and Restore API on elastic.co- Parameters:
restoreSnapshotRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
delete
public AcknowledgedResponse delete(DeleteSnapshotRequest deleteSnapshotRequest, RequestOptions options) throws IOException Deprecated.Deletes a snapshot. See Snapshot and Restore API on elastic.co- Parameters:
deleteSnapshotRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
deleteAsync
public Cancellable deleteAsync(DeleteSnapshotRequest deleteSnapshotRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously deletes a snapshot. See Snapshot and Restore API on elastic.co- Parameters:
deleteSnapshotRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-