Class ElasticsearchSnapshotClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.snapshot.ElasticsearchSnapshotClient
public class ElasticsearchSnapshotClient extends ApiClient
Client for the snapshot namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchSnapshotClient(Transport transport)
-
Method Summary
Methods inherited from class co.elastic.clients.base.ApiClient
_transport, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchSnapshotClient
-
-
Method Details
-
cleanupRepository
public 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 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
Clones indices from one snapshot into another snapshot in the same repository.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
clone
public final 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
Creates a snapshot in a repository.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
create
public final 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 CreateRepositoryResponse createRepository(CreateRepositoryRequest request) throws java.io.IOExceptionCreates a repository.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
createRepository
public final 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
Deletes a snapshot.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
delete
public final 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 DeleteRepositoryResponse deleteRepository(DeleteRepositoryRequest request) throws java.io.IOExceptionDeletes a repository.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteRepository
public final 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
Returns information about a snapshot.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
get
public final 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 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 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
Returns information about a repository.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
restore
Restores a snapshot.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
restore
public final 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
Returns information about the status of a snapshot.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
status
public final 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 VerifyRepositoryResponse verifyRepository(VerifyRepositoryRequest request) throws java.io.IOExceptionVerifies a repository.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
verifyRepository
public final 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
-