Package org.elasticsearch.client
Class IndexLifecycleClient
java.lang.Object
org.elasticsearch.client.IndexLifecycleClient
Deprecated.
The High Level Rest Client is deprecated in favor of the
Elasticsearch Java API Client
-
Method Summary
Modifier and TypeMethodDescriptiondeleteLifecyclePolicy
(DeleteLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Delete a lifecycle definition Seeorg.elasticsearch.client.Cancellable
deleteLifecyclePolicyAsync
(DeleteLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously delete a lifecycle definition SeedeleteSnapshotLifecyclePolicy
(DeleteSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Delete a snapshot lifecycle definition Seeorg.elasticsearch.client.Cancellable
deleteSnapshotLifecyclePolicyAsync
(DeleteSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously delete a snapshot lifecycle definition SeeexecuteSnapshotLifecyclePolicy
(ExecuteSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Execute a snapshot lifecycle definition Seeorg.elasticsearch.client.Cancellable
executeSnapshotLifecyclePolicyAsync
(ExecuteSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<ExecuteSnapshotLifecyclePolicyResponse> listener) Deprecated.Asynchronously execute a snapshot lifecycle definition SeeexecuteSnapshotLifecycleRetention
(ExecuteSnapshotLifecycleRetentionRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Execute snapshot lifecycle retention Seeorg.elasticsearch.client.Cancellable
executeSnapshotLifecycleRetentionAsync
(ExecuteSnapshotLifecycleRetentionRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously execute snapshot lifecycle retention SeeexplainLifecycle
(ExplainLifecycleRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Explain the lifecycle state for an index Seeorg.elasticsearch.client.Cancellable
explainLifecycleAsync
(ExplainLifecycleRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<ExplainLifecycleResponse> listener) Deprecated.Asynchronously explain the lifecycle state for an index SeegetLifecyclePolicy
(GetLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Retrieve one or more lifecycle policy definition.org.elasticsearch.client.Cancellable
getLifecyclePolicyAsync
(GetLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GetLifecyclePolicyResponse> listener) Deprecated.Asynchronously retrieve one or more lifecycle policy definition.getSLMStatus
(SnapshotLifecycleManagementStatusRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Get the status of Snapshot Lifecycle Management.org.elasticsearch.client.Cancellable
getSLMStatusAsync
(SnapshotLifecycleManagementStatusRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<LifecycleManagementStatusResponse> listener) Deprecated.Asynchronously get the status of Snapshot Lifecycle Management.getSnapshotLifecyclePolicy
(GetSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Retrieve one or more snapshot lifecycle policy definitions.org.elasticsearch.client.Cancellable
getSnapshotLifecyclePolicyAsync
(GetSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GetSnapshotLifecyclePolicyResponse> listener) Deprecated.Asynchronously retrieve one or more snapshot lifecycle policy definition.getSnapshotLifecycleStats
(GetSnapshotLifecycleStatsRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Retrieve snapshot lifecycle statistics.org.elasticsearch.client.Cancellable
getSnapshotLifecycleStatsAsync
(GetSnapshotLifecycleStatsRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GetSnapshotLifecycleStatsResponse> listener) Deprecated.Asynchronously retrieve snapshot lifecycle statistics.lifecycleManagementStatus
(LifecycleManagementStatusRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Get the status of index lifecycle management Seeorg.elasticsearch.client.Cancellable
lifecycleManagementStatusAsync
(LifecycleManagementStatusRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<LifecycleManagementStatusResponse> listener) Deprecated.Asynchronously get the status of index lifecycle management SeeputLifecyclePolicy
(PutLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Create or modify a lifecycle definition.org.elasticsearch.client.Cancellable
putLifecyclePolicyAsync
(PutLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously create or modify a lifecycle definition.putSnapshotLifecyclePolicy
(PutSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Create or modify a snapshot lifecycle definition.org.elasticsearch.client.Cancellable
putSnapshotLifecyclePolicyAsync
(PutSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously create or modify a snapshot lifecycle definition.removeIndexLifecyclePolicy
(RemoveIndexLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Remove the index lifecycle policy for an index Seeorg.elasticsearch.client.Cancellable
removeIndexLifecyclePolicyAsync
(RemoveIndexLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<RemoveIndexLifecyclePolicyResponse> listener) Deprecated.Asynchronously remove the index lifecycle policy for an index SeeretryLifecyclePolicy
(RetryLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Retry lifecycle step for given indices Seeorg.elasticsearch.client.Cancellable
retryLifecyclePolicyAsync
(RetryLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously retry the lifecycle step for given indices SeestartILM
(StartILMRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Start the Index Lifecycle Management feature.org.elasticsearch.client.Cancellable
startILMAsync
(StartILMRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously start the Index Lifecycle Management feature.startSLM
(StartSLMRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Start the Snapshot Lifecycle Management feature.org.elasticsearch.client.Cancellable
startSLMAsync
(StartSLMRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously start the Snapshot Lifecycle Management feature.stopILM
(StopILMRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Stop the Index Lifecycle Management feature.org.elasticsearch.client.Cancellable
stopILMAsync
(StopILMRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously stop the Index Lifecycle Management feature.stopSLM
(StopSLMRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Stop the Snapshot Lifecycle Management feature.org.elasticsearch.client.Cancellable
stopSLMAsync
(StopSLMRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously stop the Snapshot Lifecycle Management feature.
-
Method Details
-
getLifecyclePolicy
public GetLifecyclePolicyResponse getLifecyclePolicy(GetLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Retrieve one or more lifecycle policy definition. See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getLifecyclePolicyAsync
public org.elasticsearch.client.Cancellable getLifecyclePolicyAsync(GetLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GetLifecyclePolicyResponse> listener) Deprecated.Asynchronously retrieve one or more lifecycle policy definition. See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
putLifecyclePolicy
public AcknowledgedResponse putLifecyclePolicy(PutLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Create or modify a lifecycle definition. See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
putLifecyclePolicyAsync
public org.elasticsearch.client.Cancellable putLifecyclePolicyAsync(PutLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously create or modify a lifecycle definition. See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteLifecyclePolicy
public AcknowledgedResponse deleteLifecyclePolicy(DeleteLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Delete a lifecycle definition Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-ilm-delete-lifecycle-policy.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
deleteLifecyclePolicyAsync
public org.elasticsearch.client.Cancellable deleteLifecyclePolicyAsync(DeleteLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously delete a lifecycle definition Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-ilm-delete-lifecycle-policy.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
removeIndexLifecyclePolicy
public RemoveIndexLifecyclePolicyResponse removeIndexLifecyclePolicy(RemoveIndexLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Remove the index lifecycle policy for an index Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-ilm-remove-lifecycle-policy-from-index.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
removeIndexLifecyclePolicyAsync
public org.elasticsearch.client.Cancellable removeIndexLifecyclePolicyAsync(RemoveIndexLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<RemoveIndexLifecyclePolicyResponse> listener) Deprecated.Asynchronously remove the index lifecycle policy for an index Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-ilm-remove-lifecycle-policy-from-index.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
startILM
public AcknowledgedResponse startILM(StartILMRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Start the Index Lifecycle Management feature. Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-ilm-start-ilm.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
startILMAsync
public org.elasticsearch.client.Cancellable startILMAsync(StartILMRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously start the Index Lifecycle Management feature. Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-ilm-start-ilm.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
stopILM
public AcknowledgedResponse stopILM(StopILMRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Stop the Index Lifecycle Management feature. Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-ilm-stop-ilm.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
stopILMAsync
public org.elasticsearch.client.Cancellable stopILMAsync(StopILMRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously stop the Index Lifecycle Management feature. Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-ilm-stop-ilm.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
lifecycleManagementStatus
public LifecycleManagementStatusResponse lifecycleManagementStatus(LifecycleManagementStatusRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Get the status of index lifecycle management Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-ilm-status.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Throws:
IOException
-
lifecycleManagementStatusAsync
public org.elasticsearch.client.Cancellable lifecycleManagementStatusAsync(LifecycleManagementStatusRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<LifecycleManagementStatusResponse> listener) Deprecated.Asynchronously get the status of index lifecycle management Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-ilm-status.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
explainLifecycle
public ExplainLifecycleResponse explainLifecycle(ExplainLifecycleRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Explain the lifecycle state for an index Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-ilm-explain-lifecycle.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
explainLifecycleAsync
public org.elasticsearch.client.Cancellable explainLifecycleAsync(ExplainLifecycleRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<ExplainLifecycleResponse> listener) Deprecated.Asynchronously explain the lifecycle state for an index Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-ilm-explain-lifecycle.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
retryLifecyclePolicy
public AcknowledgedResponse retryLifecyclePolicy(RetryLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Retry lifecycle step for given indices Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-ilm-retry-lifecycle-policy.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
retryLifecyclePolicyAsync
public org.elasticsearch.client.Cancellable retryLifecyclePolicyAsync(RetryLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously retry the lifecycle step for given indices Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-ilm-retry-lifecycle-policy.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getSnapshotLifecyclePolicy
public GetSnapshotLifecyclePolicyResponse getSnapshotLifecyclePolicy(GetSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Retrieve one or more snapshot lifecycle policy definitions. Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-get-snapshot-lifecycle-policy.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getSnapshotLifecyclePolicyAsync
public org.elasticsearch.client.Cancellable getSnapshotLifecyclePolicyAsync(GetSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GetSnapshotLifecyclePolicyResponse> listener) Deprecated.Asynchronously retrieve one or more snapshot lifecycle policy definition. Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-get-snapshot-lifecycle-policy.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
putSnapshotLifecyclePolicy
public AcknowledgedResponse putSnapshotLifecyclePolicy(PutSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Create or modify a snapshot lifecycle definition. Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-put-snapshot-lifecycle-policy.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
putSnapshotLifecyclePolicyAsync
public org.elasticsearch.client.Cancellable putSnapshotLifecyclePolicyAsync(PutSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously create or modify a snapshot lifecycle definition. Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-put-snapshot-lifecycle-policy.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteSnapshotLifecyclePolicy
public AcknowledgedResponse deleteSnapshotLifecyclePolicy(DeleteSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Delete a snapshot lifecycle definition Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-delete-snapshot-lifecycle-policy.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
deleteSnapshotLifecyclePolicyAsync
public org.elasticsearch.client.Cancellable deleteSnapshotLifecyclePolicyAsync(DeleteSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously delete a snapshot lifecycle definition Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-delete-snapshot-lifecycle-policy.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
executeSnapshotLifecyclePolicy
public ExecuteSnapshotLifecyclePolicyResponse executeSnapshotLifecyclePolicy(ExecuteSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Execute a snapshot lifecycle definition Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-execute-snapshot-lifecycle-policy.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
executeSnapshotLifecyclePolicyAsync
public org.elasticsearch.client.Cancellable executeSnapshotLifecyclePolicyAsync(ExecuteSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<ExecuteSnapshotLifecyclePolicyResponse> listener) Deprecated.Asynchronously execute a snapshot lifecycle definition Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-execute-snapshot-lifecycle-policy.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
executeSnapshotLifecycleRetention
public AcknowledgedResponse executeSnapshotLifecycleRetention(ExecuteSnapshotLifecycleRetentionRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Execute snapshot lifecycle retention Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-execute-snapshot-lifecycle-retention.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
executeSnapshotLifecycleRetentionAsync
public org.elasticsearch.client.Cancellable executeSnapshotLifecycleRetentionAsync(ExecuteSnapshotLifecycleRetentionRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously execute snapshot lifecycle retention Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-execute-snapshot-lifecycle-retention.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getSnapshotLifecycleStats
public GetSnapshotLifecycleStatsResponse getSnapshotLifecycleStats(GetSnapshotLifecycleStatsRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Retrieve snapshot lifecycle statistics. Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-get-snapshot-lifecycle-stats.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getSnapshotLifecycleStatsAsync
public org.elasticsearch.client.Cancellable getSnapshotLifecycleStatsAsync(GetSnapshotLifecycleStatsRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GetSnapshotLifecycleStatsResponse> listener) Deprecated.Asynchronously retrieve snapshot lifecycle statistics. Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-get-snapshot-lifecycle-stats.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
startSLM
public AcknowledgedResponse startSLM(StartSLMRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Start the Snapshot Lifecycle Management feature. Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-start-slm.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
startSLMAsync
public org.elasticsearch.client.Cancellable startSLMAsync(StartSLMRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously start the Snapshot Lifecycle Management feature. Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-start-slm.html
for more.- Parameters:
request
- the requestlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
stopSLM
public AcknowledgedResponse stopSLM(StopSLMRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Stop the Snapshot Lifecycle Management feature. Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-stop-slm.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
stopSLMAsync
public org.elasticsearch.client.Cancellable stopSLMAsync(StopSLMRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously stop the Snapshot Lifecycle Management feature. Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-stop-slm.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getSLMStatus
public LifecycleManagementStatusResponse getSLMStatus(SnapshotLifecycleManagementStatusRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Get the status of Snapshot Lifecycle Management. Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-status.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getSLMStatusAsync
public org.elasticsearch.client.Cancellable getSLMStatusAsync(SnapshotLifecycleManagementStatusRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<LifecycleManagementStatusResponse> listener) Deprecated.Asynchronously get the status of Snapshot Lifecycle Management. Seehttps://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/ java-rest-high-ilm-slm-status.html
for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-