Class MessageBusParams

    • Constructor Detail

      • MessageBusParams

        public MessageBusParams()
      • MessageBusParams

        public MessageBusParams​(LoadTypeSet loadTypes)
    • Method Detail

      • getLoadTypes

        public LoadTypeSet getLoadTypes()
        Returns:
        Returns the set of load types accepted by this Vespa installation
      • getRoutingConfigId

        public java.lang.String getRoutingConfigId()
        Returns the id to resolve to routing config.
        Returns:
        The config id.
      • setRoutingConfigId

        public MessageBusParams setRoutingConfigId​(java.lang.String configId)
        Sets the id to resolve to routing config. This has a proper default value that holds for Vespa applications, and can therefore be left unset.
        Parameters:
        configId - The config id.
        Returns:
        This object for chaining.
      • getProtocolConfigId

        public java.lang.String getProtocolConfigId()
        Returns the id to resolve to protocol config.
        Returns:
        The config id.
      • setProtocolConfigId

        public MessageBusParams setProtocolConfigId​(java.lang.String configId)
        Sets the id to resolve to protocol config. This has a proper default value that holds for Vespa applications, and can therefore be left usnet.
        Parameters:
        configId - The config id.
        Returns:
        This, to allow chaining.
      • setRouteName

        public MessageBusParams setRouteName​(java.lang.String routeName)
        Sets the name of the route to send appropriate requests to. This is a convenience method for prefixing a route with "route:", and using setRoute(java.lang.String) instead.
        Parameters:
        routeName - The route name.
        Returns:
        This object for chaining.
      • setRoute

        public MessageBusParams setRoute​(java.lang.String route)
        Sets the route string to send all requests to. This string will be parsed as a route string, so setting a route name directly will not necessarily have the intended consequences. Use "route:<routename>" syntax for route names, or the convenience method setRouteName(java.lang.String) for this.
        Parameters:
        route - The route string.
        Returns:
        This object for chaining.
      • setRouteNameForGet

        public MessageBusParams setRouteNameForGet​(java.lang.String routeName)
      • setRouteForGet

        public MessageBusParams setRouteForGet​(java.lang.String route)
      • getRoute

        public java.lang.String getRoute()
        Returns the route string that all requests will be sent to.
        Returns:
        The route string.
      • getRouteForGet

        public java.lang.String getRouteForGet()
      • getTraceLevel

        public int getTraceLevel()
        Returns the trace level to use when sending.
        Returns:
        The trace level.
      • setTraceLevel

        public MessageBusParams setTraceLevel​(int traceLevel)
        Sets the trace level to use when sending.
        Parameters:
        traceLevel - The trace level.
        Returns:
        This object for chaining.
      • getRPCNetworkParams

        public com.yahoo.messagebus.network.rpc.RPCNetworkParams getRPCNetworkParams()
        Returns the params object used to instantiate the rpc network layer for message bus.
        Returns:
        The params object.
      • setRPCNetworkParams

        public MessageBusParams setRPCNetworkParams​(com.yahoo.messagebus.network.rpc.RPCNetworkParams params)
        Sets the params object used to instantiate the rpc network layer for message bus.
        Parameters:
        params - The params object.
        Returns:
        This object for chaining.
      • getMessageBusParams

        public com.yahoo.messagebus.MessageBusParams getMessageBusParams()
        Returns the params object used to instantiate the message bus.
        Returns:
        The params object.
      • setMessageBusParams

        public MessageBusParams setMessageBusParams​(com.yahoo.messagebus.MessageBusParams params)
        Sets the params object used to instantiate the message bus.
        Parameters:
        params - The params object.
        Returns:
        This object for chaining.
      • getSourceSessionParams

        public com.yahoo.messagebus.SourceSessionParams getSourceSessionParams()
        Returns a reference to the extended source session params object.
        Returns:
        The params object.
      • setSourceSessionParams

        public MessageBusParams setSourceSessionParams​(com.yahoo.messagebus.SourceSessionParams params)
        Sets the extended source session params.
        Parameters:
        params - The params object.
        Returns:
        This object for chaining.