diff options
author | Olli Virtanen <olli.virtanen@oath.com> | 2019-01-28 12:29:34 +0100 |
---|---|---|
committer | Olli Virtanen <olli.virtanen@oath.com> | 2019-01-28 12:29:34 +0100 |
commit | 7939c0a9bc1ffe0e04e7243dc844a6aa9d6a8c30 (patch) | |
tree | 8c6223793415604d11b8135113114e9262d3ee6e /configserver/src | |
parent | 7ab7ef084c10547ad1e3456144d769c53849d7e0 (diff) |
Java dispatch feature flag
Diffstat (limited to 'configserver/src')
-rw-r--r-- | configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java b/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java index 0a64eca63be..68765a25581 100644 --- a/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java +++ b/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java @@ -40,7 +40,7 @@ public class ModelContextImpl implements ModelContext { private final Optional<HostProvisioner> hostProvisioner; private final ModelContext.Properties properties; private final Optional<File> appDir; - + /** The version of Vespa we are building a model for */ private final Version modelVespaVersion; @@ -86,9 +86,9 @@ public class ModelContextImpl implements ModelContext { @Override public Optional<ApplicationPackage> permanentApplicationPackage() { return permanentApplicationPackage; } - /** - * Returns the host provisioner to use, or empty to use the default provisioner, - * creating hosts from the application package defined hosts + /** + * Returns the host provisioner to use, or empty to use the default provisioner, + * creating hosts from the application package defined hosts */ // TODO: Don't allow empty here but create the right provisioner when this is set up instead @Override @@ -129,6 +129,7 @@ public class ModelContextImpl implements ModelContext { private final boolean isBootstrap; private final boolean isFirstTimeDeployment; private final boolean useDedicatedNodeForLogserver; + private final boolean useFdispatchByDefault; public Properties(ApplicationId applicationId, boolean multitenantFromConfig, @@ -155,6 +156,8 @@ public class ModelContextImpl implements ModelContext { this.isFirstTimeDeployment = isFirstTimeDeployment; this.useDedicatedNodeForLogserver = Flags.USE_DEDICATED_NODE_FOR_LOGSERVER.bindTo(flagSource) .with(FetchVector.Dimension.APPLICATION_ID, applicationId.serializedForm()).value(); + this.useFdispatchByDefault = Flags.USE_FDISPATCH_BY_DEFAULT.bindTo(flagSource) + .with(FetchVector.Dimension.APPLICATION_ID, applicationId.serializedForm()).value(); } @Override @@ -196,6 +199,9 @@ public class ModelContextImpl implements ModelContext { @Override public boolean useDedicatedNodeForLogserver() { return useDedicatedNodeForLogserver; } - } + + @Override + public boolean useFdispatchByDefault() { return useFdispatchByDefault; } +} } |