Class MigrationClient

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

public final class MigrationClient extends Object
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
      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)
      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