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 Details

    • getIndexedRouteName

      public static String getIndexedRouteName(String configId)
    • getDirectRouteName

      public static String getDirectRouteName(String configId)
    • getConfig

      public void getConfig(com.yahoo.documentapi.messagebus.protocol.DocumentrouteselectorpolicyConfig.Builder builder)
      Specified by:
      getConfig in interface com.yahoo.documentapi.messagebus.protocol.DocumentrouteselectorpolicyConfig.Producer
    • getConfig

      public void getConfig(com.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig.Builder builder)
      Specified by:
      getConfig in interface com.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 interface Protocol
    • 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 interface Protocol