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, RequestOptions options) Deprecated.Delete a lifecycle definition SeedeleteLifecyclePolicyAsync
(DeleteLifecyclePolicyRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously delete a lifecycle definition SeedeleteSnapshotLifecyclePolicy
(DeleteSnapshotLifecyclePolicyRequest request, RequestOptions options) Deprecated.Delete a snapshot lifecycle definition SeedeleteSnapshotLifecyclePolicyAsync
(DeleteSnapshotLifecyclePolicyRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously delete a snapshot lifecycle definition SeeexecuteSnapshotLifecyclePolicy
(ExecuteSnapshotLifecyclePolicyRequest request, RequestOptions options) Deprecated.Execute a snapshot lifecycle definition SeeexecuteSnapshotLifecyclePolicyAsync
(ExecuteSnapshotLifecyclePolicyRequest request, RequestOptions options, ActionListener<ExecuteSnapshotLifecyclePolicyResponse> listener) Deprecated.Asynchronously execute a snapshot lifecycle definition SeeexecuteSnapshotLifecycleRetention
(ExecuteSnapshotLifecycleRetentionRequest request, RequestOptions options) Deprecated.Execute snapshot lifecycle retention SeeexecuteSnapshotLifecycleRetentionAsync
(ExecuteSnapshotLifecycleRetentionRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously execute snapshot lifecycle retention SeeexplainLifecycle
(ExplainLifecycleRequest request, RequestOptions options) Deprecated.Explain the lifecycle state for an index SeeexplainLifecycleAsync
(ExplainLifecycleRequest request, RequestOptions options, ActionListener<ExplainLifecycleResponse> listener) Deprecated.Asynchronously explain the lifecycle state for an index SeegetLifecyclePolicy
(GetLifecyclePolicyRequest request, RequestOptions options) Deprecated.Retrieve one or more lifecycle policy definition.getLifecyclePolicyAsync
(GetLifecyclePolicyRequest request, RequestOptions options, ActionListener<GetLifecyclePolicyResponse> listener) Deprecated.Asynchronously retrieve one or more lifecycle policy definition.getSLMStatus
(SnapshotLifecycleManagementStatusRequest request, RequestOptions options) Deprecated.Get the status of Snapshot Lifecycle Management.getSLMStatusAsync
(SnapshotLifecycleManagementStatusRequest request, RequestOptions options, ActionListener<LifecycleManagementStatusResponse> listener) Deprecated.Asynchronously get the status of Snapshot Lifecycle Management.getSnapshotLifecyclePolicy
(GetSnapshotLifecyclePolicyRequest request, RequestOptions options) Deprecated.Retrieve one or more snapshot lifecycle policy definitions.getSnapshotLifecyclePolicyAsync
(GetSnapshotLifecyclePolicyRequest request, RequestOptions options, ActionListener<GetSnapshotLifecyclePolicyResponse> listener) Deprecated.Asynchronously retrieve one or more snapshot lifecycle policy definition.getSnapshotLifecycleStats
(GetSnapshotLifecycleStatsRequest request, RequestOptions options) Deprecated.Retrieve snapshot lifecycle statistics.getSnapshotLifecycleStatsAsync
(GetSnapshotLifecycleStatsRequest request, RequestOptions options, ActionListener<GetSnapshotLifecycleStatsResponse> listener) Deprecated.Asynchronously retrieve snapshot lifecycle statistics.lifecycleManagementStatus
(LifecycleManagementStatusRequest request, RequestOptions options) Deprecated.Get the status of index lifecycle management SeelifecycleManagementStatusAsync
(LifecycleManagementStatusRequest request, RequestOptions options, ActionListener<LifecycleManagementStatusResponse> listener) Deprecated.Asynchronously get the status of index lifecycle management SeeputLifecyclePolicy
(PutLifecyclePolicyRequest request, RequestOptions options) Deprecated.Create or modify a lifecycle definition.putLifecyclePolicyAsync
(PutLifecyclePolicyRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously create or modify a lifecycle definition.putSnapshotLifecyclePolicy
(PutSnapshotLifecyclePolicyRequest request, RequestOptions options) Deprecated.Create or modify a snapshot lifecycle definition.putSnapshotLifecyclePolicyAsync
(PutSnapshotLifecyclePolicyRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously create or modify a snapshot lifecycle definition.removeIndexLifecyclePolicy
(RemoveIndexLifecyclePolicyRequest request, RequestOptions options) Deprecated.Remove the index lifecycle policy for an index SeeremoveIndexLifecyclePolicyAsync
(RemoveIndexLifecyclePolicyRequest request, RequestOptions options, ActionListener<RemoveIndexLifecyclePolicyResponse> listener) Deprecated.Asynchronously remove the index lifecycle policy for an index SeeretryLifecyclePolicy
(RetryLifecyclePolicyRequest request, RequestOptions options) Deprecated.Retry lifecycle step for given indices SeeretryLifecyclePolicyAsync
(RetryLifecyclePolicyRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously retry the lifecycle step for given indices SeestartILM
(StartILMRequest request, RequestOptions options) Deprecated.Start the Index Lifecycle Management feature.startILMAsync
(StartILMRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously start the Index Lifecycle Management feature.startSLM
(StartSLMRequest request, RequestOptions options) Deprecated.Start the Snapshot Lifecycle Management feature.startSLMAsync
(StartSLMRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously start the Snapshot Lifecycle Management feature.stopILM
(StopILMRequest request, RequestOptions options) Deprecated.Stop the Index Lifecycle Management feature.stopILMAsync
(StopILMRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously stop the Index Lifecycle Management feature.stopSLM
(StopSLMRequest request, RequestOptions options) Deprecated.Stop the Snapshot Lifecycle Management feature.stopSLMAsync
(StopSLMRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously stop the Snapshot Lifecycle Management feature.
-
Method Details
-
getLifecyclePolicy
public GetLifecyclePolicyResponse getLifecyclePolicy(GetLifecyclePolicyRequest request, 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 Cancellable getLifecyclePolicyAsync(GetLifecyclePolicyRequest request, RequestOptions options, 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, 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 Cancellable putLifecyclePolicyAsync(PutLifecyclePolicyRequest request, RequestOptions options, 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, 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 Cancellable deleteLifecyclePolicyAsync(DeleteLifecyclePolicyRequest request, RequestOptions options, 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, 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 Cancellable removeIndexLifecyclePolicyAsync(RemoveIndexLifecyclePolicyRequest request, RequestOptions options, 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, 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 Cancellable startILMAsync(StartILMRequest request, RequestOptions options, 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, 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 Cancellable stopILMAsync(StopILMRequest request, RequestOptions options, 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, 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 Cancellable lifecycleManagementStatusAsync(LifecycleManagementStatusRequest request, RequestOptions options, 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, 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 Cancellable explainLifecycleAsync(ExplainLifecycleRequest request, RequestOptions options, 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, 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 Cancellable retryLifecyclePolicyAsync(RetryLifecyclePolicyRequest request, RequestOptions options, 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, 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 Cancellable getSnapshotLifecyclePolicyAsync(GetSnapshotLifecyclePolicyRequest request, RequestOptions options, 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, 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 Cancellable putSnapshotLifecyclePolicyAsync(PutSnapshotLifecyclePolicyRequest request, RequestOptions options, 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, 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 Cancellable deleteSnapshotLifecyclePolicyAsync(DeleteSnapshotLifecyclePolicyRequest request, RequestOptions options, 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, 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 Cancellable executeSnapshotLifecyclePolicyAsync(ExecuteSnapshotLifecyclePolicyRequest request, RequestOptions options, 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, 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 Cancellable executeSnapshotLifecycleRetentionAsync(ExecuteSnapshotLifecycleRetentionRequest request, RequestOptions options, 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, 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 Cancellable getSnapshotLifecycleStatsAsync(GetSnapshotLifecycleStatsRequest request, RequestOptions options, 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, 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 Cancellable startSLMAsync(StartSLMRequest request, RequestOptions options, 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, 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 Cancellable stopSLMAsync(StopSLMRequest request, RequestOptions options, 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, 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 Cancellable getSLMStatusAsync(SnapshotLifecycleManagementStatusRequest request, RequestOptions options, 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
-