Package com.yahoo.vespa.model.routing
Class DocumentProtocol
java.lang.Object
com.yahoo.vespa.model.routing.DocumentProtocol
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer
,com.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig.Producer
,com.yahoo.documentapi.messagebus.protocol.DocumentrouteselectorpolicyConfig.Producer
,Protocol
public final class DocumentProtocol
extends Object
implements Protocol, com.yahoo.documentapi.messagebus.protocol.DocumentrouteselectorpolicyConfig.Producer, com.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig.Producer
This class is responsible for generating all hops and routes for the Document protocol running on message bus. All
the code within could really be part of
Routing
, but it has been partitioned out to allow better readability
and also more easily maintainable as the number of protocols increase.- Author:
- Simon Thoresen Hult
-
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.messagebus.routing.ApplicationSpec
Returns the specification of the application as seen by this protocol.void
getConfig
(com.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig.Builder builder) void
getConfig
(com.yahoo.documentapi.messagebus.protocol.DocumentrouteselectorpolicyConfig.Builder builder) static void
getConfig
(com.yahoo.vespa.config.content.MessagetyperouteselectorpolicyConfig.Builder builder, String configId) static String
getDirectRouteName
(String configId) static String
getIndexedRouteName
(String configId) com.yahoo.messagebus.routing.RoutingTableSpec
Returns the specification for the routing table of this protocol.
-
Method Details
-
getIndexedRouteName
-
getDirectRouteName
-
getConfig
public void getConfig(com.yahoo.documentapi.messagebus.protocol.DocumentrouteselectorpolicyConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.documentapi.messagebus.protocol.DocumentrouteselectorpolicyConfig.Producer
-
getConfig
public void getConfig(com.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig.Producer
-
getConfig
public static void getConfig(com.yahoo.vespa.config.content.MessagetyperouteselectorpolicyConfig.Builder builder, String configId) -
getApplicationSpec
public com.yahoo.messagebus.routing.ApplicationSpec getApplicationSpec()Description copied from interface:Protocol
Returns the specification of the application as seen by this protocol.- Specified by:
getApplicationSpec
in interfaceProtocol
-
getRoutingTableSpec
public com.yahoo.messagebus.routing.RoutingTableSpec getRoutingTableSpec()Description copied from interface:Protocol
Returns the specification for the routing table of this protocol.- Specified by:
getRoutingTableSpec
in interfaceProtocol
-