summaryrefslogtreecommitdiffstats
path: root/standalone-container
diff options
context:
space:
mode:
authorgjoranv <gjoranv@gmail.com>2018-04-30 15:36:40 +0200
committerGitHub <noreply@github.com>2018-04-30 15:36:40 +0200
commit7fc748e2c148a015c5aea8a00dededbc9ac6c3dc (patch)
tree956b71a3394074c3f8339b1f6c86923d18467c18 /standalone-container
parent785cd5bc744a7e6e8c395b38629df2216a6b9651 (diff)
parent537382d0e731f5658789bee819553cb74627c341 (diff)
Merge pull request #5700 from vespa-engine/hmusum/move-rpc-http-messagebus-enabled-flags-to-container-cluster
Move flags for rpc, messagebus and http enabled to container cluster
Diffstat (limited to 'standalone-container')
-rw-r--r--standalone-container/src/main/scala/com/yahoo/container/standalone/StandaloneContainerApplication.scala9
1 files changed, 2 insertions, 7 deletions
diff --git a/standalone-container/src/main/scala/com/yahoo/container/standalone/StandaloneContainerApplication.scala b/standalone-container/src/main/scala/com/yahoo/container/standalone/StandaloneContainerApplication.scala
index 50ad6c73daa..5271cd400d4 100644
--- a/standalone-container/src/main/scala/com/yahoo/container/standalone/StandaloneContainerApplication.scala
+++ b/standalone-container/src/main/scala/com/yahoo/container/standalone/StandaloneContainerApplication.scala
@@ -172,7 +172,6 @@ object StandaloneContainerApplication {
deployState.getDocumentModel,
deployState.getProperties.vespaVersion(),
deployState.getProperties.applicationId())
-
val spec = containerRootElement(applicationPackage)
val containerModel = newContainerModelBuilder(networkingOption).build(deployState, configModelRepo, vespaRoot, spec)
@@ -180,14 +179,10 @@ object StandaloneContainerApplication {
DeprecationSuppressor.initializeContainerModel(containerModel, configModelRepo)
val container = first(containerModel.getCluster().getContainers)
- // TODO: If we can do the mutations below on the builder, we can separate out model finalization from the
- // VespaModel constructor, such that the above and below code to finalize the container can be
+ // TODO: Separate out model finalization from the VespaModel constructor,
+ // such that the above and below code to finalize the container can be
// replaced by root.finalize();
- // Always disable rpc server for standalone container. This server will soon be removed anyway.
- container.setRpcServerEnabled(false)
- container.setHttpServerEnabled(networkingOption == Networking.enable)
-
initializeContainer(container, spec)
root.freezeModelTopology()