@Override
    public void select(RoutingContext context) {
        LoadBalancer.Node node = getRecipient(context);

        if (node != null) {
            context.setContext(node);
            Route route = new Route(context.getRoute());
            route.setHop(0, Hop.parse(node.entry.getSpecString() + "/" + session));
            context.addChild(route);
        } else {
            context.setError(ErrorCode.NO_ADDRESS_FOR_SERVICE, "Could not resolve any nodes to send to in pattern " + pattern);
        }
    }
Routing policy to load balance between nodes in a randomly distributed cluster, such as a docproc cluster.

pattern=&lt;pattern&gt; (mandatory, determines the pattern of nodes to send to)<br>
slobroks=&lt;comma-separated connectionspecs&gt; (optional, list of slobroks to use to find the pattern)<br>
config=&lt;comma-separated list of config servers&gt; (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
documentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/LoadBalancerPolicy.java