Package org.elasticsearch.client
Class MigrationClient
- java.lang.Object
-
- org.elasticsearch.client.MigrationClient
-
public final class MigrationClient extends java.lang.Object
A wrapper for theRestHighLevelClient
that provides methods for accessing the Elastic License-related methodsSee the X-Pack Migration APIs on elastic.co for more information.
-
-
Method Summary
Modifier and Type Method Description DeprecationInfoResponse
getDeprecationInfo(DeprecationInfoRequest request, RequestOptions options)
Get deprecation info for one or more indicesCancellable
getDeprecationInfoAsync(DeprecationInfoRequest request, RequestOptions options, ActionListener<DeprecationInfoResponse> listener)
Asynchronously get deprecation info for one or more indices
-
-
-
Method Detail
-
getDeprecationInfo
public DeprecationInfoResponse getDeprecationInfo(DeprecationInfoRequest request, RequestOptions options) throws java.io.IOException
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:
java.io.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)
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
-
-