Class ElasticsearchSlmClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.slm.ElasticsearchSlmClient
public class ElasticsearchSlmClient extends ApiClient
Client for the slm namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchSlmClient(Transport transport) -
Method Summary
Modifier and Type Method Description DeleteLifecycleResponsedeleteLifecycle(DeleteLifecycleRequest request)Deletes an existing snapshot lifecycle policy.DeleteLifecycleResponsedeleteLifecycle(java.util.function.Function<DeleteLifecycleRequest.Builder,ObjectBuilder<DeleteLifecycleRequest>> fn)Deletes an existing snapshot lifecycle policy.ExecuteLifecycleResponseexecuteLifecycle(ExecuteLifecycleRequest request)Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time.ExecuteLifecycleResponseexecuteLifecycle(java.util.function.Function<ExecuteLifecycleRequest.Builder,ObjectBuilder<ExecuteLifecycleRequest>> fn)Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time.ExecuteRetentionResponseexecuteRetention()Deletes any snapshots that are expired according to the policy's retention rules.GetLifecycleResponsegetLifecycle(GetLifecycleRequest request)Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts.GetLifecycleResponsegetLifecycle(java.util.function.Function<GetLifecycleRequest.Builder,ObjectBuilder<GetLifecycleRequest>> fn)Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts.GetStatsResponsegetStats()Returns global and policy-level statistics about actions taken by snapshot lifecycle management.GetStatusResponsegetStatus()Retrieves the status of snapshot lifecycle management (SLM).PutLifecycleResponseputLifecycle(PutLifecycleRequest request)Creates or updates a snapshot lifecycle policy.PutLifecycleResponseputLifecycle(java.util.function.Function<PutLifecycleRequest.Builder,ObjectBuilder<PutLifecycleRequest>> fn)Creates or updates a snapshot lifecycle policy.StartResponsestart()Turns on snapshot lifecycle management (SLM).StopResponsestop()Turns off snapshot lifecycle management (SLM).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
-
ElasticsearchSlmClient
-
-
Method Details
-
deleteLifecycle
public DeleteLifecycleResponse deleteLifecycle(DeleteLifecycleRequest request) throws java.io.IOExceptionDeletes an existing snapshot lifecycle policy.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteLifecycle
public final DeleteLifecycleResponse deleteLifecycle(java.util.function.Function<DeleteLifecycleRequest.Builder,ObjectBuilder<DeleteLifecycleRequest>> fn) throws java.io.IOExceptionDeletes an existing snapshot lifecycle policy.- 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
-
executeLifecycle
public ExecuteLifecycleResponse executeLifecycle(ExecuteLifecycleRequest request) throws java.io.IOExceptionImmediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
executeLifecycle
public final ExecuteLifecycleResponse executeLifecycle(java.util.function.Function<ExecuteLifecycleRequest.Builder,ObjectBuilder<ExecuteLifecycleRequest>> fn) throws java.io.IOExceptionImmediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time.- 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
-
executeRetention
Deletes any snapshots that are expired according to the policy's retention rules.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getLifecycle
Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getLifecycle
public final GetLifecycleResponse getLifecycle(java.util.function.Function<GetLifecycleRequest.Builder,ObjectBuilder<GetLifecycleRequest>> fn) throws java.io.IOExceptionRetrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts.- 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
-
getStats
Returns global and policy-level statistics about actions taken by snapshot lifecycle management.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getStatus
Retrieves the status of snapshot lifecycle management (SLM).- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putLifecycle
Creates or updates a snapshot lifecycle policy.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putLifecycle
public final PutLifecycleResponse putLifecycle(java.util.function.Function<PutLifecycleRequest.Builder,ObjectBuilder<PutLifecycleRequest>> fn) throws java.io.IOExceptionCreates or updates a snapshot lifecycle policy.- 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
-
start
Turns on snapshot lifecycle management (SLM).- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
stop
Turns off snapshot lifecycle management (SLM).- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-