Class ElasticsearchIlmAsyncClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.ilm.ElasticsearchIlmAsyncClient
public class ElasticsearchIlmAsyncClient extends ApiClient
Client for the ilm namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchIlmAsyncClient(Transport transport)
-
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<DeleteLifecycleResponse>
deleteLifecycle(DeleteLifecycleRequest request)
Deletes the specified lifecycle policy definition.java.util.concurrent.CompletableFuture<DeleteLifecycleResponse>
deleteLifecycle(java.util.function.Function<DeleteLifecycleRequest.Builder,ObjectBuilder<DeleteLifecycleRequest>> fn)
Deletes the specified lifecycle policy definition.java.util.concurrent.CompletableFuture<ExplainLifecycleResponse>
explainLifecycle(ExplainLifecycleRequest request)
Retrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step.java.util.concurrent.CompletableFuture<ExplainLifecycleResponse>
explainLifecycle(java.util.function.Function<ExplainLifecycleRequest.Builder,ObjectBuilder<ExplainLifecycleRequest>> fn)
Retrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step.java.util.concurrent.CompletableFuture<GetLifecycleResponse>
getLifecycle(GetLifecycleRequest request)
Returns the specified policy definition.java.util.concurrent.CompletableFuture<GetLifecycleResponse>
getLifecycle(java.util.function.Function<GetLifecycleRequest.Builder,ObjectBuilder<GetLifecycleRequest>> fn)
Returns the specified policy definition.java.util.concurrent.CompletableFuture<GetStatusResponse>
getStatus()
Retrieves the current index lifecycle management (ILM) status.java.util.concurrent.CompletableFuture<MoveToStepResponse>
moveToStep(MoveToStepRequest request)
Manually moves an index into the specified step and executes that step.java.util.concurrent.CompletableFuture<MoveToStepResponse>
moveToStep(java.util.function.Function<MoveToStepRequest.Builder,ObjectBuilder<MoveToStepRequest>> fn)
Manually moves an index into the specified step and executes that step.java.util.concurrent.CompletableFuture<PutLifecycleResponse>
putLifecycle(PutLifecycleRequest request)
Creates a lifecycle policyjava.util.concurrent.CompletableFuture<PutLifecycleResponse>
putLifecycle(java.util.function.Function<PutLifecycleRequest.Builder,ObjectBuilder<PutLifecycleRequest>> fn)
Creates a lifecycle policyjava.util.concurrent.CompletableFuture<RemovePolicyResponse>
removePolicy(RemovePolicyRequest request)
Removes the assigned lifecycle policy and stops managing the specified indexjava.util.concurrent.CompletableFuture<RemovePolicyResponse>
removePolicy(java.util.function.Function<RemovePolicyRequest.Builder,ObjectBuilder<RemovePolicyRequest>> fn)
Removes the assigned lifecycle policy and stops managing the specified indexjava.util.concurrent.CompletableFuture<RetryResponse>
retry(RetryRequest request)
Retries executing the policy for an index that is in the ERROR step.java.util.concurrent.CompletableFuture<RetryResponse>
retry(java.util.function.Function<RetryRequest.Builder,ObjectBuilder<RetryRequest>> fn)
Retries executing the policy for an index that is in the ERROR step.java.util.concurrent.CompletableFuture<StartResponse>
start(StartRequest request)
Start the index lifecycle management (ILM) plugin.java.util.concurrent.CompletableFuture<StartResponse>
start(java.util.function.Function<StartRequest.Builder,ObjectBuilder<StartRequest>> fn)
Start the index lifecycle management (ILM) plugin.java.util.concurrent.CompletableFuture<StopResponse>
stop(StopRequest request)
Halts all lifecycle management operations and stops the index lifecycle management (ILM) pluginjava.util.concurrent.CompletableFuture<StopResponse>
stop(java.util.function.Function<StopRequest.Builder,ObjectBuilder<StopRequest>> fn)
Halts all lifecycle management operations and stops the index lifecycle management (ILM) pluginMethods 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
-
ElasticsearchIlmAsyncClient
-
-
Method Details
-
deleteLifecycle
public java.util.concurrent.CompletableFuture<DeleteLifecycleResponse> deleteLifecycle(DeleteLifecycleRequest request) throws java.io.IOExceptionDeletes the specified lifecycle policy definition. A currently used policy cannot be deleted.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteLifecycle
public final java.util.concurrent.CompletableFuture<DeleteLifecycleResponse> deleteLifecycle(java.util.function.Function<DeleteLifecycleRequest.Builder,ObjectBuilder<DeleteLifecycleRequest>> fn) throws java.io.IOExceptionDeletes the specified lifecycle policy definition. A currently used policy cannot be deleted.- 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
-
explainLifecycle
public java.util.concurrent.CompletableFuture<ExplainLifecycleResponse> explainLifecycle(ExplainLifecycleRequest request) throws java.io.IOExceptionRetrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
explainLifecycle
public final java.util.concurrent.CompletableFuture<ExplainLifecycleResponse> explainLifecycle(java.util.function.Function<ExplainLifecycleRequest.Builder,ObjectBuilder<ExplainLifecycleRequest>> fn) throws java.io.IOExceptionRetrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step.- 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
-
getLifecycle
public java.util.concurrent.CompletableFuture<GetLifecycleResponse> getLifecycle(GetLifecycleRequest request) throws java.io.IOExceptionReturns the specified policy definition. Includes the policy version and last modified date.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getLifecycle
public final java.util.concurrent.CompletableFuture<GetLifecycleResponse> getLifecycle(java.util.function.Function<GetLifecycleRequest.Builder,ObjectBuilder<GetLifecycleRequest>> fn) throws java.io.IOExceptionReturns the specified policy definition. Includes the policy version and last modified date.- 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
-
getStatus
public java.util.concurrent.CompletableFuture<GetStatusResponse> getStatus() throws java.io.IOExceptionRetrieves the current index lifecycle management (ILM) status.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
moveToStep
public java.util.concurrent.CompletableFuture<MoveToStepResponse> moveToStep(MoveToStepRequest request) throws java.io.IOExceptionManually moves an index into the specified step and executes that step.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
moveToStep
public final java.util.concurrent.CompletableFuture<MoveToStepResponse> moveToStep(java.util.function.Function<MoveToStepRequest.Builder,ObjectBuilder<MoveToStepRequest>> fn) throws java.io.IOExceptionManually moves an index into the specified step and executes that step.- 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
-
putLifecycle
public java.util.concurrent.CompletableFuture<PutLifecycleResponse> putLifecycle(PutLifecycleRequest request) throws java.io.IOExceptionCreates a lifecycle policy- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putLifecycle
public final java.util.concurrent.CompletableFuture<PutLifecycleResponse> putLifecycle(java.util.function.Function<PutLifecycleRequest.Builder,ObjectBuilder<PutLifecycleRequest>> fn) throws java.io.IOExceptionCreates a 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
-
removePolicy
public java.util.concurrent.CompletableFuture<RemovePolicyResponse> removePolicy(RemovePolicyRequest request) throws java.io.IOExceptionRemoves the assigned lifecycle policy and stops managing the specified index- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
removePolicy
public final java.util.concurrent.CompletableFuture<RemovePolicyResponse> removePolicy(java.util.function.Function<RemovePolicyRequest.Builder,ObjectBuilder<RemovePolicyRequest>> fn) throws java.io.IOExceptionRemoves the assigned lifecycle policy and stops managing the specified index- 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
-
retry
public java.util.concurrent.CompletableFuture<RetryResponse> retry(RetryRequest request) throws java.io.IOExceptionRetries executing the policy for an index that is in the ERROR step.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
retry
public final java.util.concurrent.CompletableFuture<RetryResponse> retry(java.util.function.Function<RetryRequest.Builder,ObjectBuilder<RetryRequest>> fn) throws java.io.IOExceptionRetries executing the policy for an index that is in the ERROR step.- 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
public java.util.concurrent.CompletableFuture<StartResponse> start(StartRequest request) throws java.io.IOExceptionStart the index lifecycle management (ILM) plugin.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
start
public final java.util.concurrent.CompletableFuture<StartResponse> start(java.util.function.Function<StartRequest.Builder,ObjectBuilder<StartRequest>> fn) throws java.io.IOExceptionStart the index lifecycle management (ILM) plugin.- 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
-
stop
public java.util.concurrent.CompletableFuture<StopResponse> stop(StopRequest request) throws java.io.IOExceptionHalts all lifecycle management operations and stops the index lifecycle management (ILM) plugin- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
stop
public final java.util.concurrent.CompletableFuture<StopResponse> stop(java.util.function.Function<StopRequest.Builder,ObjectBuilder<StopRequest>> fn) throws java.io.IOExceptionHalts all lifecycle management operations and stops the index lifecycle management (ILM) plugin- 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
-