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.
  • Constructor Details

    • ElasticsearchIlmAsyncClient

      public ElasticsearchIlmAsyncClient​(Transport transport)
  • Method Details

    • deleteLifecycle

      public java.util.concurrent.CompletableFuture<DeleteLifecycleResponse> deleteLifecycle​(DeleteLifecycleRequest request) throws java.io.IOException
      Deletes 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.IOException
      Deletes 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.IOException
      Retrieves 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.IOException
      Retrieves 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.IOException
      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 java.util.concurrent.CompletableFuture<GetLifecycleResponse> getLifecycle​(java.util.function.Function<GetLifecycleRequest.Builder,​ObjectBuilder<GetLifecycleRequest>> fn) throws java.io.IOException
      Returns 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.IOException
      Retrieves 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.IOException
      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 java.util.concurrent.CompletableFuture<MoveToStepResponse> moveToStep​(java.util.function.Function<MoveToStepRequest.Builder,​ObjectBuilder<MoveToStepRequest>> fn) throws java.io.IOException
      Manually 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.IOException
      Creates 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.IOException
      Creates 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.IOException
      Removes 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.IOException
      Removes 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.IOException
      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 java.util.concurrent.CompletableFuture<RetryResponse> retry​(java.util.function.Function<RetryRequest.Builder,​ObjectBuilder<RetryRequest>> fn) throws java.io.IOException
      Retries 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.IOException
      Start 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.IOException
      Start 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.IOException
      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 java.util.concurrent.CompletableFuture<StopResponse> stop​(java.util.function.Function<StopRequest.Builder,​ObjectBuilder<StopRequest>> fn) throws java.io.IOException
      Halts 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