From 0de8cf47b1fc9d834af86f8c94c6fb18444cae20 Mon Sep 17 00:00:00 2001 From: Igor Motov Date: Tue, 13 Jun 2017 11:35:46 -0400 Subject: [PATCH] Add REST point names Relates to elastic/elasticsearch#24169 Original commit: elastic/x-pack-elasticsearch@d18a24a0354dd20001d2b1f61fd3c94cc02c4dfb --- .../xpack/upgrade/rest/RestIndexUpgradeAction.java | 5 +++++ .../xpack/upgrade/rest/RestIndexUpgradeInfoAction.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/plugin/src/main/java/org/elasticsearch/xpack/upgrade/rest/RestIndexUpgradeAction.java b/plugin/src/main/java/org/elasticsearch/xpack/upgrade/rest/RestIndexUpgradeAction.java index 0706d3919b5..8d553cc8454 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/upgrade/rest/RestIndexUpgradeAction.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/upgrade/rest/RestIndexUpgradeAction.java @@ -38,6 +38,11 @@ public class RestIndexUpgradeAction extends BaseRestHandler { this.extraParameters = extraParameters; } + @Override + public String getName() { + return "xpack_migration_upgrade"; + } + @Override public RestChannelConsumer prepareRequest(RestRequest request, NodeClient client) throws IOException { if (request.method().equals(RestRequest.Method.POST)) { diff --git a/plugin/src/main/java/org/elasticsearch/xpack/upgrade/rest/RestIndexUpgradeInfoAction.java b/plugin/src/main/java/org/elasticsearch/xpack/upgrade/rest/RestIndexUpgradeInfoAction.java index 147ae48889c..ecafc0664bd 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/upgrade/rest/RestIndexUpgradeInfoAction.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/upgrade/rest/RestIndexUpgradeInfoAction.java @@ -32,6 +32,11 @@ public class RestIndexUpgradeInfoAction extends BaseRestHandler { } + @Override + public String getName() { + return "xpack_migration_assistance"; + } + @Override public RestChannelConsumer prepareRequest(RestRequest request, NodeClient client) throws IOException { if (request.method().equals(RestRequest.Method.GET)) {