aboutsummaryrefslogtreecommitdiffstats
path: root/config-model-api/src/main/java/com/yahoo/config/model/api/ConfigChangeReindexAction.java
diff options
context:
space:
mode:
Diffstat (limited to 'config-model-api/src/main/java/com/yahoo/config/model/api/ConfigChangeReindexAction.java')
-rw-r--r--config-model-api/src/main/java/com/yahoo/config/model/api/ConfigChangeReindexAction.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/config-model-api/src/main/java/com/yahoo/config/model/api/ConfigChangeReindexAction.java b/config-model-api/src/main/java/com/yahoo/config/model/api/ConfigChangeReindexAction.java
index 085638e31ff..9820890672b 100644
--- a/config-model-api/src/main/java/com/yahoo/config/model/api/ConfigChangeReindexAction.java
+++ b/config-model-api/src/main/java/com/yahoo/config/model/api/ConfigChangeReindexAction.java
@@ -1,6 +1,8 @@
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.model.api;
+import com.yahoo.config.application.api.ValidationId;
+
/**
* Represents an action to re-index a document type in order to handle a config change.
*
@@ -10,8 +12,11 @@ public interface ConfigChangeReindexAction extends ConfigChangeAction {
@Override default Type getType() { return Type.REINDEX; }
+ /** Returns the validation ID used to allow deployment when this action is required. */
+ ValidationId validationId();
+
/** @return name identifying this kind of change, used to identify names which should be allowed */
- String name();
+ default String name() { return validationId().value(); }
/** @return name of the document type that must be re-indexed */
String getDocumentType();