summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/config/model/builder/xml
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-08-24 18:39:36 +0200
committerJon Bratseth <bratseth@oath.com>2018-08-24 18:39:36 +0200
commit35e957f09c4018c2e1bab70da2e632130b0b43e6 (patch)
treeccc5414c93737c7b4ca3cd4362043ca65d9d12e3 /config-model/src/main/java/com/yahoo/config/model/builder/xml
parent0c1bd91225452980d79f7a9a38d1e5fa5aba8644 (diff)
Generate a global rank profile config
This makes available to all regular container clusters a config containing a set of rank profiles containing the expressions resulting from converting all the ml models added in the models/ directory in the application package.
Diffstat (limited to 'config-model/src/main/java/com/yahoo/config/model/builder/xml')
-rw-r--r--config-model/src/main/java/com/yahoo/config/model/builder/xml/ConfigModelBuilder.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/config-model/src/main/java/com/yahoo/config/model/builder/xml/ConfigModelBuilder.java b/config-model/src/main/java/com/yahoo/config/model/builder/xml/ConfigModelBuilder.java
index bb0d24f9b26..b1e197db4eb 100644
--- a/config-model/src/main/java/com/yahoo/config/model/builder/xml/ConfigModelBuilder.java
+++ b/config-model/src/main/java/com/yahoo/config/model/builder/xml/ConfigModelBuilder.java
@@ -9,6 +9,7 @@ import com.yahoo.config.model.ConfigModelRepo;
import com.yahoo.config.model.api.ConfigModelPlugin;
import com.yahoo.config.model.deploy.DeployState;
import com.yahoo.config.model.producer.AbstractConfigProducer;
+import com.yahoo.vespa.model.VespaModel;
import org.w3c.dom.Element;
import java.lang.reflect.Constructor;
@@ -54,9 +55,9 @@ public abstract class ConfigModelBuilder<MODEL extends ConfigModel> extends Abst
* @param parent the root config producer this should be added to
* @param spec the XML element this is constructed from
*/
- public final MODEL build(DeployState deployState, ConfigModelRepo configModelRepo,
+ public final MODEL build(DeployState deployState, VespaModel vespaModel, ConfigModelRepo configModelRepo,
AbstractConfigProducer parent, Element spec) {
- ConfigModelContext context = ConfigModelContext.create(deployState, configModelRepo, parent, getIdString(spec));
+ ConfigModelContext context = ConfigModelContext.create(deployState, vespaModel, configModelRepo, parent, getIdString(spec));
return build(new DefaultModelInstanceFactory(), spec, context);
}