Package com.yahoo.vespa.model.routing
Class Routing
java.lang.Object
com.yahoo.config.model.ConfigModel
com.yahoo.vespa.model.routing.Routing
This is the routing plugin of the Vespa model. This class is responsible for parsing all routing information given
explicitly by the user in the optional <routing> element. If there is no such element, only default routes and
hops will be available.
- Author:
- Simon Thoresen Hult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deriveCommonSettings
(ConfigModelRepo plugins) Derives all routing settings that can be found by inspecting the given plugin container.void
getConfig
(com.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig.Builder builder) void
getConfig
(com.yahoo.documentapi.messagebus.protocol.DocumentrouteselectorpolicyConfig.Builder builder) void
getConfig
(com.yahoo.messagebus.MessagebusConfig.Builder builder) Returns a list of errors found when preparing the routing configuration.void
setExplicitApplicationSpec
(com.yahoo.messagebus.routing.ApplicationSpec app) Sets the application specification to include when verifying the complete routing config.void
setExplicitRoutingSpec
(com.yahoo.messagebus.routing.RoutingSpec routing) Sets the routing specification to include in the derived routing config.Methods inherited from class com.yahoo.config.model.ConfigModel
getId, initialize, isServing, prepare
-
Constructor Details
-
Routing
-
-
Method Details
-
setExplicitApplicationSpec
public void setExplicitApplicationSpec(com.yahoo.messagebus.routing.ApplicationSpec app) Sets the application specification to include when verifying the complete routing config. This needs to be invoked beforederiveCommonSettings(com.yahoo.config.model.ConfigModelRepo)
to be included.- Parameters:
app
- the application specification to include
-
setExplicitRoutingSpec
public void setExplicitRoutingSpec(com.yahoo.messagebus.routing.RoutingSpec routing) Sets the routing specification to include in the derived routing config. This needs to be invoked beforederiveCommonSettings(com.yahoo.config.model.ConfigModelRepo)
to be included.- Parameters:
routing
- the routing specification to include
-
getProtocols
-
deriveCommonSettings
Derives all routing settings that can be found by inspecting the given plugin container.- Parameters:
plugins
- all initialized plugins of the vespa model
-
getConfig
public void getConfig(com.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig.Builder builder) -
getConfig
public void getConfig(com.yahoo.documentapi.messagebus.protocol.DocumentrouteselectorpolicyConfig.Builder builder) -
getConfig
public void getConfig(com.yahoo.messagebus.MessagebusConfig.Builder builder) -
getErrors
Returns a list of errors found when preparing the routing configuration.
-