Class ElasticsearchIlmClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchIlmClient>
co.elastic.clients.elasticsearch.ilm.ElasticsearchIlmClient
public class ElasticsearchIlmClient extends ApiClient<ElasticsearchTransport,ElasticsearchIlmClient>
Client for the ilm namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
Constructors Constructor Description ElasticsearchIlmClient(ElasticsearchTransport transport)
ElasticsearchIlmClient(ElasticsearchTransport transport, TransportOptions transportOptions)
-
Method Summary
Modifier and Type Method Description DeleteLifecycleResponse
deleteLifecycle(DeleteLifecycleRequest request)
Deletes the specified lifecycle policy definition.DeleteLifecycleResponse
deleteLifecycle(java.util.function.Function<DeleteLifecycleRequest.Builder,ObjectBuilder<DeleteLifecycleRequest>> fn)
Deletes the specified lifecycle policy definition.ExplainLifecycleResponse
explainLifecycle(ExplainLifecycleRequest request)
Retrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step.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.GetLifecycleResponse
getLifecycle()
Returns the specified policy definition.GetLifecycleResponse
getLifecycle(GetLifecycleRequest request)
Returns the specified policy definition.GetLifecycleResponse
getLifecycle(java.util.function.Function<GetLifecycleRequest.Builder,ObjectBuilder<GetLifecycleRequest>> fn)
Returns the specified policy definition.GetIlmStatusResponse
getStatus()
Retrieves the current index lifecycle management (ILM) status.MoveToStepResponse
moveToStep(MoveToStepRequest request)
Manually moves an index into the specified step and executes that step.MoveToStepResponse
moveToStep(java.util.function.Function<MoveToStepRequest.Builder,ObjectBuilder<MoveToStepRequest>> fn)
Manually moves an index into the specified step and executes that step.PutLifecycleResponse
putLifecycle(PutLifecycleRequest request)
Creates a lifecycle policyPutLifecycleResponse
putLifecycle(java.util.function.Function<PutLifecycleRequest.Builder,ObjectBuilder<PutLifecycleRequest>> fn)
Creates a lifecycle policyRemovePolicyResponse
removePolicy(RemovePolicyRequest request)
Removes the assigned lifecycle policy and stops managing the specified indexRemovePolicyResponse
removePolicy(java.util.function.Function<RemovePolicyRequest.Builder,ObjectBuilder<RemovePolicyRequest>> fn)
Removes the assigned lifecycle policy and stops managing the specified indexRetryResponse
retry(RetryRequest request)
Retries executing the policy for an index that is in the ERROR step.RetryResponse
retry(java.util.function.Function<RetryRequest.Builder,ObjectBuilder<RetryRequest>> fn)
Retries executing the policy for an index that is in the ERROR step.StartIlmResponse
start()
Start the index lifecycle management (ILM) plugin.StartIlmResponse
start(StartIlmRequest request)
Start the index lifecycle management (ILM) plugin.StartIlmResponse
start(java.util.function.Function<StartIlmRequest.Builder,ObjectBuilder<StartIlmRequest>> fn)
Start the index lifecycle management (ILM) plugin.StopIlmResponse
stop()
Halts all lifecycle management operations and stops the index lifecycle management (ILM) pluginStopIlmResponse
stop(StopIlmRequest request)
Halts all lifecycle management operations and stops the index lifecycle management (ILM) pluginStopIlmResponse
stop(java.util.function.Function<StopIlmRequest.Builder,ObjectBuilder<StopIlmRequest>> fn)
Halts all lifecycle management operations and stops the index lifecycle management (ILM) pluginElasticsearchIlmClient
withTransportOptions(TransportOptions transportOptions)
Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_transport, _transportOptions, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchIlmClient
-
ElasticsearchIlmClient
public ElasticsearchIlmClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,ElasticsearchIlmClient>
-
deleteLifecycle
public DeleteLifecycleResponse deleteLifecycle(DeleteLifecycleRequest request) throws java.io.IOException, ElasticsearchExceptionDeletes the specified lifecycle policy definition. A currently used policy cannot be deleted.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
deleteLifecycle
public final DeleteLifecycleResponse deleteLifecycle(java.util.function.Function<DeleteLifecycleRequest.Builder,ObjectBuilder<DeleteLifecycleRequest>> fn) throws java.io.IOException, ElasticsearchExceptionDeletes the specified lifecycle policy definition. A currently used policy cannot be deleted.- Parameters:
fn
- a function that initializes a builder to create theDeleteLifecycleRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
explainLifecycle
public ExplainLifecycleResponse explainLifecycle(ExplainLifecycleRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
explainLifecycle
public final ExplainLifecycleResponse explainLifecycle(java.util.function.Function<ExplainLifecycleRequest.Builder,ObjectBuilder<ExplainLifecycleRequest>> fn) throws java.io.IOException, ElasticsearchExceptionRetrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step.- Parameters:
fn
- a function that initializes a builder to create theExplainLifecycleRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getLifecycle
public GetLifecycleResponse getLifecycle(GetLifecycleRequest request) throws java.io.IOException, ElasticsearchExceptionReturns the specified policy definition. Includes the policy version and last modified date.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getLifecycle
public final GetLifecycleResponse getLifecycle(java.util.function.Function<GetLifecycleRequest.Builder,ObjectBuilder<GetLifecycleRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns the specified policy definition. Includes the policy version and last modified date.- Parameters:
fn
- a function that initializes a builder to create theGetLifecycleRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getLifecycle
Returns the specified policy definition. Includes the policy version and last modified date.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getStatus
Retrieves the current index lifecycle management (ILM) status.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
moveToStep
public MoveToStepResponse moveToStep(MoveToStepRequest request) throws java.io.IOException, ElasticsearchExceptionManually moves an index into the specified step and executes that step.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
moveToStep
public final MoveToStepResponse moveToStep(java.util.function.Function<MoveToStepRequest.Builder,ObjectBuilder<MoveToStepRequest>> fn) throws java.io.IOException, ElasticsearchExceptionManually moves an index into the specified step and executes that step.- Parameters:
fn
- a function that initializes a builder to create theMoveToStepRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
putLifecycle
public PutLifecycleResponse putLifecycle(PutLifecycleRequest request) throws java.io.IOException, ElasticsearchExceptionCreates a lifecycle policy- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
putLifecycle
public final PutLifecycleResponse putLifecycle(java.util.function.Function<PutLifecycleRequest.Builder,ObjectBuilder<PutLifecycleRequest>> fn) throws java.io.IOException, ElasticsearchExceptionCreates a lifecycle policy- Parameters:
fn
- a function that initializes a builder to create thePutLifecycleRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
removePolicy
public RemovePolicyResponse removePolicy(RemovePolicyRequest request) throws java.io.IOException, ElasticsearchExceptionRemoves the assigned lifecycle policy and stops managing the specified index- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
removePolicy
public final RemovePolicyResponse removePolicy(java.util.function.Function<RemovePolicyRequest.Builder,ObjectBuilder<RemovePolicyRequest>> fn) throws java.io.IOException, ElasticsearchExceptionRemoves the assigned lifecycle policy and stops managing the specified index- Parameters:
fn
- a function that initializes a builder to create theRemovePolicyRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
retry
public RetryResponse retry(RetryRequest request) throws java.io.IOException, ElasticsearchExceptionRetries executing the policy for an index that is in the ERROR step.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
retry
public final RetryResponse retry(java.util.function.Function<RetryRequest.Builder,ObjectBuilder<RetryRequest>> fn) throws java.io.IOException, ElasticsearchExceptionRetries executing the policy for an index that is in the ERROR step.- Parameters:
fn
- a function that initializes a builder to create theRetryRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
start
public StartIlmResponse start(StartIlmRequest request) throws java.io.IOException, ElasticsearchExceptionStart the index lifecycle management (ILM) plugin.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
start
public final StartIlmResponse start(java.util.function.Function<StartIlmRequest.Builder,ObjectBuilder<StartIlmRequest>> fn) throws java.io.IOException, ElasticsearchExceptionStart the index lifecycle management (ILM) plugin.- Parameters:
fn
- a function that initializes a builder to create theStartIlmRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
start
Start the index lifecycle management (ILM) plugin.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
stop
public StopIlmResponse stop(StopIlmRequest request) throws java.io.IOException, ElasticsearchExceptionHalts all lifecycle management operations and stops the index lifecycle management (ILM) plugin- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
stop
public final StopIlmResponse stop(java.util.function.Function<StopIlmRequest.Builder,ObjectBuilder<StopIlmRequest>> fn) throws java.io.IOException, ElasticsearchExceptionHalts all lifecycle management operations and stops the index lifecycle management (ILM) plugin- Parameters:
fn
- a function that initializes a builder to create theStopIlmRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
stop
Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-