Class MigrationClient

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

public final class MigrationClient
extends java.lang.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 Summary

    Modifier and Type Method Description
    DeprecationInfoResponse getDeprecationInfo​(DeprecationInfoRequest request, org.elasticsearch.client.RequestOptions options)
    Get deprecation info for one or more indices
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getDeprecationInfo

      public DeprecationInfoResponse getDeprecationInfo​(DeprecationInfoRequest request, org.elasticsearch.client.RequestOptions options) throws java.io.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:
      java.io.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