Package org.elasticsearch.client
Class MigrationClient
- java.lang.Object
-
- org.elasticsearch.client.MigrationClient
-
public final class MigrationClient extends java.lang.ObjectA wrapper for theRestHighLevelClientthat 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 IndexUpgradeInfoResponsegetAssistance(IndexUpgradeInfoRequest request, RequestOptions options)DeprecationInfoResponsegetDeprecationInfo(DeprecationInfoRequest request, RequestOptions options)Get deprecation info for one or more indicesvoidgetDeprecationInfoAsync(DeprecationInfoRequest request, RequestOptions options, ActionListener<DeprecationInfoResponse> listener)Asynchronously get deprecation info for one or more indicesTaskSubmissionResponsesubmitUpgradeTask(IndexUpgradeRequest request, RequestOptions options)Deprecated.The Migration Upgrade API is deprecated, use the Kibana Upgrade Assistant or Reindex API instead.BulkByScrollResponseupgrade(IndexUpgradeRequest request, RequestOptions options)Deprecated.The Migration Upgrade API is deprecated, use the Kibana Upgrade Assistant or Reindex API instead.voidupgradeAsync(IndexUpgradeRequest request, RequestOptions options, ActionListener<BulkByScrollResponse> listener)Deprecated.The Migration Upgrade API is deprecated, use the Kibana Upgrade Assistant or Reindex API instead.
-
-
-
Method Detail
-
getAssistance
@Deprecated public IndexUpgradeInfoResponse getAssistance(IndexUpgradeInfoRequest request, RequestOptions options) throws java.io.IOException
Deprecated.Get Migration Assistance for one or more indices- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif 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
-
upgrade
@Deprecated public BulkByScrollResponse upgrade(IndexUpgradeRequest request, RequestOptions options) throws java.io.IOException
Deprecated.The Migration Upgrade API is deprecated, use the Kibana Upgrade Assistant or Reindex API instead.- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif 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
-
submitUpgradeTask
@Deprecated public TaskSubmissionResponse submitUpgradeTask(IndexUpgradeRequest request, RequestOptions options) throws java.io.IOException
Deprecated.The Migration Upgrade API is deprecated, use the Kibana Upgrade Assistant or Reindex API instead.- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif 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
-
upgradeAsync
@Deprecated public void upgradeAsync(IndexUpgradeRequest request, RequestOptions options, ActionListener<BulkByScrollResponse> listener)
Deprecated.The Migration Upgrade API is deprecated, use the Kibana Upgrade Assistant or Reindex API instead.- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized
-
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.DEFAULTif 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 void 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.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion
-
-