Class MigrationClient

java.lang.Object
org.elasticsearch.client.MigrationClient

@Deprecated public final class MigrationClient extends Object
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 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 request
      options - the request options (e.g. headers), use RequestOptions.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 request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - 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 request
      options - the request options (e.g. headers), use RequestOptions.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 request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - 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 request
      options - the request options (e.g. headers), use RequestOptions.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 request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      Returns:
      cancellable that may be used to cancel the request
      Throws:
      IOException