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 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()Returns the specified policy definition.GetLifecycleResponsegetLifecycle(GetLifecycleRequest request)Returns the specified policy definition.GetLifecycleResponsegetLifecycle(java.util.function.Function<GetLifecycleRequest.Builder,ObjectBuilder<GetLifecycleRequest>> fn)Returns the specified policy definition.GetIlmStatusResponsegetStatus()Retrieves the current index lifecycle management (ILM) status.MigrateToDataTiersResponsemigrateToDataTiers()Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routingMigrateToDataTiersResponsemigrateToDataTiers(MigrateToDataTiersRequest request)Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routingMigrateToDataTiersResponsemigrateToDataTiers(java.util.function.Function<MigrateToDataTiersRequest.Builder,ObjectBuilder<MigrateToDataTiersRequest>> fn)Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routingMoveToStepResponsemoveToStep(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.StartIlmResponsestart()Start the index lifecycle management (ILM) plugin.StartIlmResponsestart(StartIlmRequest request)Start the index lifecycle management (ILM) plugin.StartIlmResponsestart(java.util.function.Function<StartIlmRequest.Builder,ObjectBuilder<StartIlmRequest>> fn)Start the index lifecycle management (ILM) plugin.StopIlmResponsestop()Halts all lifecycle management operations and stops the index lifecycle management (ILM) pluginStopIlmResponsestop(StopIlmRequest request)Halts all lifecycle management operations and stops the index lifecycle management (ILM) pluginStopIlmResponsestop(java.util.function.Function<StopIlmRequest.Builder,ObjectBuilder<StopIlmRequest>> fn)Halts all lifecycle management operations and stops the index lifecycle management (ILM) pluginElasticsearchIlmClientwithTransportOptions(TransportOptions transportOptions)Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializerMethods 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:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin 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.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getLifecycle
Returns the specified policy definition. Includes the policy version and last modified date.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getStatus
Retrieves the current index lifecycle management (ILM) status.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
migrateToDataTiers
public MigrateToDataTiersResponse migrateToDataTiers(MigrateToDataTiersRequest request) throws java.io.IOException, ElasticsearchExceptionMigrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
migrateToDataTiers
public final MigrateToDataTiersResponse migrateToDataTiers(java.util.function.Function<MigrateToDataTiersRequest.Builder,ObjectBuilder<MigrateToDataTiersRequest>> fn) throws java.io.IOException, ElasticsearchExceptionMigrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing- Parameters:
fn- a function that initializes a builder to create theMigrateToDataTiersRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
migrateToDataTiers
public MigrateToDataTiersResponse migrateToDataTiers() throws java.io.IOException, ElasticsearchExceptionMigrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing- Throws:
java.io.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putLifecycle
public PutLifecycleResponse putLifecycle(PutLifecycleRequest request) throws java.io.IOException, ElasticsearchExceptionCreates a lifecycle policy- Throws:
java.io.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
start
Start the index lifecycle management (ILM) plugin.- Throws:
java.io.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
stop
Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-