Class ElasticsearchIlmClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.ilm.ElasticsearchIlmClient
public class ElasticsearchIlmClient extends ApiClient
Client for the ilm namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchIlmClient(Transport transport) -
Method Summary
Modifier and Type Method Description DeleteLifecycleResponsedeleteLifecycle(DeleteLifecycleRequest request)Deletes the specified lifecycle policy definition.DeleteLifecycleResponsedeleteLifecycle(java.util.function.Function<DeleteLifecycleRequest.Builder,ObjectBuilder<DeleteLifecycleRequest>> fn)Deletes the specified lifecycle policy definition.ExplainLifecycleResponseexplainLifecycle(ExplainLifecycleRequest request)Retrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step.ExplainLifecycleResponseexplainLifecycle(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.GetLifecycleResponsegetLifecycle(GetLifecycleRequest request)Returns the specified policy definition.GetLifecycleResponsegetLifecycle(java.util.function.Function<GetLifecycleRequest.Builder,ObjectBuilder<GetLifecycleRequest>> fn)Returns the specified policy definition.GetStatusResponsegetStatus()Retrieves the current index lifecycle management (ILM) status.MoveToStepResponsemoveToStep(MoveToStepRequest request)Manually moves an index into the specified step and executes that step.MoveToStepResponsemoveToStep(java.util.function.Function<MoveToStepRequest.Builder,ObjectBuilder<MoveToStepRequest>> fn)Manually moves an index into the specified step and executes that step.PutLifecycleResponseputLifecycle(PutLifecycleRequest request)Creates a lifecycle policyPutLifecycleResponseputLifecycle(java.util.function.Function<PutLifecycleRequest.Builder,ObjectBuilder<PutLifecycleRequest>> fn)Creates a lifecycle policyRemovePolicyResponseremovePolicy(RemovePolicyRequest request)Removes the assigned lifecycle policy and stops managing the specified indexRemovePolicyResponseremovePolicy(java.util.function.Function<RemovePolicyRequest.Builder,ObjectBuilder<RemovePolicyRequest>> fn)Removes the assigned lifecycle policy and stops managing the specified indexRetryResponseretry(RetryRequest request)Retries executing the policy for an index that is in the ERROR step.RetryResponseretry(java.util.function.Function<RetryRequest.Builder,ObjectBuilder<RetryRequest>> fn)Retries executing the policy for an index that is in the ERROR step.StartResponsestart(StartRequest request)Start the index lifecycle management (ILM) plugin.StartResponsestart(java.util.function.Function<StartRequest.Builder,ObjectBuilder<StartRequest>> fn)Start the index lifecycle management (ILM) plugin.StopResponsestop(StopRequest request)Halts all lifecycle management operations and stops the index lifecycle management (ILM) pluginStopResponsestop(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, getDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchIlmClient
-
-
Method Details
-
deleteLifecycle
public 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 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 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 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
Returns 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 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
Retrieves the current index lifecycle management (ILM) status.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
moveToStep
Manually moves an index into the specified step and executes that step.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
moveToStep
public final 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
Creates a 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 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
Removes the assigned lifecycle policy and stops managing the specified index- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
removePolicy
public final 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
Retries 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 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
Start the index lifecycle management (ILM) plugin.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
start
public final 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
Halts 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 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
-