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.ApplicationSpecReturns the specification of the application as seen by this protocol.voidgetConfig(com.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig.Builder builder) voidgetConfig(com.yahoo.documentapi.messagebus.protocol.DocumentrouteselectorpolicyConfig.Builder builder) static voidgetConfig(com.yahoo.vespa.config.content.MessagetyperouteselectorpolicyConfig.Builder builder, String configId) static StringgetDirectRouteName(String configId) static StringgetIndexedRouteName(String configId) com.yahoo.messagebus.routing.RoutingTableSpecReturns 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:
getConfigin interfacecom.yahoo.documentapi.messagebus.protocol.DocumentrouteselectorpolicyConfig.Producer
-
getConfig
public void getConfig(com.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig.Builder builder) - Specified by:
getConfigin 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:ProtocolReturns the specification of the application as seen by this protocol.- Specified by:
getApplicationSpecin interfaceProtocol
-
getRoutingTableSpec
public com.yahoo.messagebus.routing.RoutingTableSpec getRoutingTableSpec()Description copied from interface:ProtocolReturns the specification for the routing table of this protocol.- Specified by:
getRoutingTableSpecin interfaceProtocol
-