Class ElasticsearchSnapshotAsyncClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.snapshot.ElasticsearchSnapshotAsyncClient
public class ElasticsearchSnapshotAsyncClient extends ApiClient
Client for the snapshot namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchSnapshotAsyncClient(Transport transport) -
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<CleanupRepositoryResponse>cleanupRepository(CleanupRepositoryRequest request)Removes stale data from repository.java.util.concurrent.CompletableFuture<CleanupRepositoryResponse>cleanupRepository(java.util.function.Function<CleanupRepositoryRequest.Builder,ObjectBuilder<CleanupRepositoryRequest>> fn)Removes stale data from repository.java.util.concurrent.CompletableFuture<CloneSnapshotResponse>clone(CloneSnapshotRequest request)Clones indices from one snapshot into another snapshot in the same repository.java.util.concurrent.CompletableFuture<CloneSnapshotResponse>clone(java.util.function.Function<CloneSnapshotRequest.Builder,ObjectBuilder<CloneSnapshotRequest>> fn)Clones indices from one snapshot into another snapshot in the same repository.java.util.concurrent.CompletableFuture<CreateSnapshotResponse>create(CreateSnapshotRequest request)Creates a snapshot in a repository.java.util.concurrent.CompletableFuture<CreateSnapshotResponse>create(java.util.function.Function<CreateSnapshotRequest.Builder,ObjectBuilder<CreateSnapshotRequest>> fn)Creates a snapshot in a repository.java.util.concurrent.CompletableFuture<CreateRepositoryResponse>createRepository(CreateRepositoryRequest request)Creates a repository.java.util.concurrent.CompletableFuture<CreateRepositoryResponse>createRepository(java.util.function.Function<CreateRepositoryRequest.Builder,ObjectBuilder<CreateRepositoryRequest>> fn)Creates a repository.java.util.concurrent.CompletableFuture<DeleteSnapshotResponse>delete(DeleteSnapshotRequest request)Deletes a snapshot.java.util.concurrent.CompletableFuture<DeleteSnapshotResponse>delete(java.util.function.Function<DeleteSnapshotRequest.Builder,ObjectBuilder<DeleteSnapshotRequest>> fn)Deletes a snapshot.java.util.concurrent.CompletableFuture<DeleteRepositoryResponse>deleteRepository(DeleteRepositoryRequest request)Deletes a repository.java.util.concurrent.CompletableFuture<DeleteRepositoryResponse>deleteRepository(java.util.function.Function<DeleteRepositoryRequest.Builder,ObjectBuilder<DeleteRepositoryRequest>> fn)Deletes a repository.java.util.concurrent.CompletableFuture<GetSnapshotResponse>get(GetSnapshotRequest request)Returns information about a snapshot.java.util.concurrent.CompletableFuture<GetSnapshotResponse>get(java.util.function.Function<GetSnapshotRequest.Builder,ObjectBuilder<GetSnapshotRequest>> fn)Returns information about a snapshot.java.util.concurrent.CompletableFuture<GetRepositoryResponse>getRepository()Returns information about a repository.java.util.concurrent.CompletableFuture<GetRepositoryResponse>getRepository(GetRepositoryRequest request)Returns information about a repository.java.util.concurrent.CompletableFuture<GetRepositoryResponse>getRepository(java.util.function.Function<GetRepositoryRequest.Builder,ObjectBuilder<GetRepositoryRequest>> fn)Returns information about a repository.java.util.concurrent.CompletableFuture<RestoreResponse>restore(RestoreRequest request)Restores a snapshot.java.util.concurrent.CompletableFuture<RestoreResponse>restore(java.util.function.Function<RestoreRequest.Builder,ObjectBuilder<RestoreRequest>> fn)Restores a snapshot.java.util.concurrent.CompletableFuture<StatusResponse>status()Returns information about the status of a snapshot.java.util.concurrent.CompletableFuture<StatusResponse>status(StatusRequest request)Returns information about the status of a snapshot.java.util.concurrent.CompletableFuture<StatusResponse>status(java.util.function.Function<StatusRequest.Builder,ObjectBuilder<StatusRequest>> fn)Returns information about the status of a snapshot.java.util.concurrent.CompletableFuture<VerifyRepositoryResponse>verifyRepository(VerifyRepositoryRequest request)Verifies a repository.java.util.concurrent.CompletableFuture<VerifyRepositoryResponse>verifyRepository(java.util.function.Function<VerifyRepositoryRequest.Builder,ObjectBuilder<VerifyRepositoryRequest>> fn)Verifies a repository.Methods inherited from class co.elastic.clients.base.ApiClient
_transport, getDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchSnapshotAsyncClient
-
-
Method Details
-
cleanupRepository
public java.util.concurrent.CompletableFuture<CleanupRepositoryResponse> cleanupRepository(CleanupRepositoryRequest request) throws java.io.IOExceptionRemoves stale data from repository.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
cleanupRepository
public final java.util.concurrent.CompletableFuture<CleanupRepositoryResponse> cleanupRepository(java.util.function.Function<CleanupRepositoryRequest.Builder,ObjectBuilder<CleanupRepositoryRequest>> fn) throws java.io.IOExceptionRemoves stale data from repository.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clone
public java.util.concurrent.CompletableFuture<CloneSnapshotResponse> clone(CloneSnapshotRequest request) throws java.io.IOExceptionClones indices from one snapshot into another snapshot in the same repository.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clone
public final java.util.concurrent.CompletableFuture<CloneSnapshotResponse> clone(java.util.function.Function<CloneSnapshotRequest.Builder,ObjectBuilder<CloneSnapshotRequest>> fn) throws java.io.IOExceptionClones indices from one snapshot into another snapshot in the same repository.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
create
public java.util.concurrent.CompletableFuture<CreateSnapshotResponse> create(CreateSnapshotRequest request) throws java.io.IOExceptionCreates a snapshot in a repository.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
create
public final java.util.concurrent.CompletableFuture<CreateSnapshotResponse> create(java.util.function.Function<CreateSnapshotRequest.Builder,ObjectBuilder<CreateSnapshotRequest>> fn) throws java.io.IOExceptionCreates a snapshot in a repository.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
createRepository
public java.util.concurrent.CompletableFuture<CreateRepositoryResponse> createRepository(CreateRepositoryRequest request) throws java.io.IOExceptionCreates a repository.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
createRepository
public final java.util.concurrent.CompletableFuture<CreateRepositoryResponse> createRepository(java.util.function.Function<CreateRepositoryRequest.Builder,ObjectBuilder<CreateRepositoryRequest>> fn) throws java.io.IOExceptionCreates a repository.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
delete
public java.util.concurrent.CompletableFuture<DeleteSnapshotResponse> delete(DeleteSnapshotRequest request) throws java.io.IOExceptionDeletes a snapshot.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
delete
public final java.util.concurrent.CompletableFuture<DeleteSnapshotResponse> delete(java.util.function.Function<DeleteSnapshotRequest.Builder,ObjectBuilder<DeleteSnapshotRequest>> fn) throws java.io.IOExceptionDeletes a snapshot.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteRepository
public java.util.concurrent.CompletableFuture<DeleteRepositoryResponse> deleteRepository(DeleteRepositoryRequest request) throws java.io.IOExceptionDeletes a repository.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteRepository
public final java.util.concurrent.CompletableFuture<DeleteRepositoryResponse> deleteRepository(java.util.function.Function<DeleteRepositoryRequest.Builder,ObjectBuilder<DeleteRepositoryRequest>> fn) throws java.io.IOExceptionDeletes a repository.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
get
public java.util.concurrent.CompletableFuture<GetSnapshotResponse> get(GetSnapshotRequest request) throws java.io.IOExceptionReturns information about a snapshot.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
get
public final java.util.concurrent.CompletableFuture<GetSnapshotResponse> get(java.util.function.Function<GetSnapshotRequest.Builder,ObjectBuilder<GetSnapshotRequest>> fn) throws java.io.IOExceptionReturns information about a snapshot.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getRepository
public java.util.concurrent.CompletableFuture<GetRepositoryResponse> getRepository(GetRepositoryRequest request) throws java.io.IOExceptionReturns information about a repository.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getRepository
public final java.util.concurrent.CompletableFuture<GetRepositoryResponse> getRepository(java.util.function.Function<GetRepositoryRequest.Builder,ObjectBuilder<GetRepositoryRequest>> fn) throws java.io.IOExceptionReturns information about a repository.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getRepository
public java.util.concurrent.CompletableFuture<GetRepositoryResponse> getRepository() throws java.io.IOExceptionReturns information about a repository.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
restore
public java.util.concurrent.CompletableFuture<RestoreResponse> restore(RestoreRequest request) throws java.io.IOExceptionRestores a snapshot.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
restore
public final java.util.concurrent.CompletableFuture<RestoreResponse> restore(java.util.function.Function<RestoreRequest.Builder,ObjectBuilder<RestoreRequest>> fn) throws java.io.IOExceptionRestores a snapshot.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
status
public java.util.concurrent.CompletableFuture<StatusResponse> status(StatusRequest request) throws java.io.IOExceptionReturns information about the status of a snapshot.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
status
public final java.util.concurrent.CompletableFuture<StatusResponse> status(java.util.function.Function<StatusRequest.Builder,ObjectBuilder<StatusRequest>> fn) throws java.io.IOExceptionReturns information about the status of a snapshot.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
status
Returns information about the status of a snapshot.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
verifyRepository
public java.util.concurrent.CompletableFuture<VerifyRepositoryResponse> verifyRepository(VerifyRepositoryRequest request) throws java.io.IOExceptionVerifies a repository.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
verifyRepository
public final java.util.concurrent.CompletableFuture<VerifyRepositoryResponse> verifyRepository(java.util.function.Function<VerifyRepositoryRequest.Builder,ObjectBuilder<VerifyRepositoryRequest>> fn) throws java.io.IOExceptionVerifies a repository.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-