Class LoadBalancerPolicy

  • All Implemented Interfaces:
    DocumentProtocolRoutingPolicy, com.yahoo.messagebus.routing.RoutingPolicy

    public class LoadBalancerPolicy
    extends SlobrokPolicy
    Routing policy to load balance between nodes in a randomly distributed cluster, such as a docproc cluster. pattern=<pattern> (mandatory, determines the pattern of nodes to send to)
    slobroks=<comma-separated connectionspecs> (optional, list of slobroks to use to find the pattern)
    config=<comma-separated list of config servers> (optional, list of config servers to use to find slobrok config) If both slobroks and config is specified, the list from slobroks is used.
    Author:
    Haakon Humberset
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      void merge​(com.yahoo.messagebus.routing.RoutingContext context)  
      void select​(com.yahoo.messagebus.routing.RoutingContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • select

        public void select​(com.yahoo.messagebus.routing.RoutingContext context)
      • merge

        public void merge​(com.yahoo.messagebus.routing.RoutingContext context)
      • destroy

        public void destroy()