Package com.yahoo.vespa.model.routing
Class Routing
- java.lang.Object
-
- com.yahoo.config.model.ConfigModel
-
- com.yahoo.vespa.model.routing.Routing
-
public class Routing extends ConfigModel
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
Constructors Constructor Description Routing(ConfigModelContext modelContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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)
List<String>
getErrors()
Returns a list of errors found when preparing the routing configuration.List<Protocol>
getProtocols()
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 Detail
-
Routing
public Routing(ConfigModelContext modelContext)
-
-
Method Detail
-
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
-
deriveCommonSettings
public void deriveCommonSettings(ConfigModelRepo plugins)
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)
-
-