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, RequestOptions options) Deprecated.Get deprecation info for one or more indicesgetDeprecationInfoAsync
(DeprecationInfoRequest request, RequestOptions options, ActionListener<DeprecationInfoResponse> listener) Deprecated.Asynchronously get deprecation info for one or more indicesgetFeatureUpgradeStatus
(GetFeatureUpgradeStatusRequest request, RequestOptions options) Deprecated.Get a list of system features that need to be upgraded for the next releasegetFeatureUpgradeStatusAsync
(GetFeatureUpgradeStatusRequest request, RequestOptions options, ActionListener<GetFeatureUpgradeStatusResponse> listener) Deprecated.Asynchronously get a list of system features that need to be upgraded for the next releasepostFeatureUpgrade
(PostFeatureUpgradeRequest request, RequestOptions options) Deprecated.Trigger a system feature upgradepostFeatureUpgradeAsync
(PostFeatureUpgradeRequest request, RequestOptions options, ActionListener<PostFeatureUpgradeResponse> listener) Deprecated.Asynchronously trigger a system feature upgrade
-
Method Details
-
getDeprecationInfo
public DeprecationInfoResponse getDeprecationInfo(DeprecationInfoRequest request, 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 Cancellable getDeprecationInfoAsync(DeprecationInfoRequest request, RequestOptions options, 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, 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 Cancellable getFeatureUpgradeStatusAsync(GetFeatureUpgradeStatusRequest request, RequestOptions options, 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, 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 Cancellable postFeatureUpgradeAsync(PostFeatureUpgradeRequest request, RequestOptions options, 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
-