aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2020-11-23 09:50:10 +0100
committerJon Marius Venstad <venstad@gmail.com>2020-11-23 09:50:10 +0100
commitc404cb9beebdf9cdb6eba563eef220cfe4f318a1 (patch)
tree333de2813c6377e6bc064d74041c91d25348d216 /config-model/src/main/java/com/yahoo
parentea0c57ca65864ee3261e00c795fcc5cef91c24b2 (diff)
Revert "Revert "Jonmv/reindexing rest api""
This reverts commit 278967c98483da6b1308d34bd7b2b77e2f690288.
Diffstat (limited to 'config-model/src/main/java/com/yahoo')
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainer.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainer.java b/config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainer.java
index ec8607daaca..d86c5e1eab6 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainer.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainer.java
@@ -119,6 +119,10 @@ public class ClusterControllerContainer extends Container implements
addFileBundle(ReindexingController.REINDEXING_CONTROLLER_BUNDLE);
addComponent(new ReindexingController(context));
addComponent(new SimpleComponent(DocumentAccessProvider.class.getName()));
+ addHandler(new Handler(createComponentModel("reindexing-status",
+ "ai.vespa.reindexing.http.ReindexingV1ApiHandler",
+ new ComponentSpecification(ReindexingController.REINDEXING_CONTROLLER_BUNDLE))),
+ "/reindexing/v1/*");
}
}