Package org.elasticsearch.client
Class MigrationClient
java.lang.Object
org.elasticsearch.client.MigrationClient
Deprecated.
The High Level Rest Client is deprecated in favor of the
Elasticsearch Java API Client
A wrapper for the
RestHighLevelClient
that provides methods for
accessing the Elastic License-related methods
See the X-Pack Migration APIs on elastic.co for more information.
-
Method Summary
Modifier and TypeMethodDescriptiongetDeprecationInfo
(DeprecationInfoRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Get deprecation info for one or more indicesorg.elasticsearch.client.Cancellable
getDeprecationInfoAsync
(DeprecationInfoRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<DeprecationInfoResponse> listener) Deprecated.Asynchronously get deprecation info for one or more indicesgetFeatureUpgradeStatus
(GetFeatureUpgradeStatusRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Get a list of system features that need to be upgraded for the next releaseorg.elasticsearch.client.Cancellable
getFeatureUpgradeStatusAsync
(GetFeatureUpgradeStatusRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GetFeatureUpgradeStatusResponse> listener) Deprecated.Asynchronously get a list of system features that need to be upgraded for the next releasepostFeatureUpgrade
(PostFeatureUpgradeRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Trigger a system feature upgradeorg.elasticsearch.client.Cancellable
postFeatureUpgradeAsync
(PostFeatureUpgradeRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<PostFeatureUpgradeResponse> listener) Deprecated.Asynchronously trigger a system feature upgrade
-
Method Details
-
getDeprecationInfo
public DeprecationInfoResponse getDeprecationInfo(DeprecationInfoRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Get deprecation info for one or more indices- 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
-
getDeprecationInfoAsync
public org.elasticsearch.client.Cancellable getDeprecationInfoAsync(DeprecationInfoRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<DeprecationInfoResponse> listener) Deprecated.Asynchronously get deprecation info for one or more indices- 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
-
getFeatureUpgradeStatus
public GetFeatureUpgradeStatusResponse getFeatureUpgradeStatus(GetFeatureUpgradeStatusRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Get a list of system features that need to be upgraded for the next release- 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
-
getFeatureUpgradeStatusAsync
public org.elasticsearch.client.Cancellable getFeatureUpgradeStatusAsync(GetFeatureUpgradeStatusRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GetFeatureUpgradeStatusResponse> listener) Deprecated.Asynchronously get a list of system features that need to be upgraded for the next release- 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
-
postFeatureUpgrade
public PostFeatureUpgradeResponse postFeatureUpgrade(PostFeatureUpgradeRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Trigger a system feature upgrade- 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
-
postFeatureUpgradeAsync
public org.elasticsearch.client.Cancellable postFeatureUpgradeAsync(PostFeatureUpgradeRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<PostFeatureUpgradeResponse> listener) throws IOException Deprecated.Asynchronously trigger a system feature upgrade- 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
- Throws:
IOException
-