Examples of DoNothingClientFactory


Examples of com.linkedin.d2.balancer.simple.SimpleLoadBalancerTest.DoNothingClientFactory

      _possibleServices.add("service-" + i);
      _possibleClusters.add("cluster-" + i);
      _possiblePaths.add("/some/path/" + i);
      _possibleSchemes.add("scheme" + i % 3);
      _possibleStrategies.add("strategy-" + i);
      _clientFactories.put("scheme" + i % 2, new DoNothingClientFactory());
      _loadBalancerStrategyFactories.put("strategy-" + i,
                                         _loadBalancerStrategyFactoryToTest);
    }

    for (int i = 0; i < 1000; ++i)
View Full Code Here

Examples of com.linkedin.d2.balancer.simple.SimpleLoadBalancerTest.DoNothingClientFactory

    }

    // verify that all clients have been shut down
    for (Map.Entry<String,TransportClientFactory> e : _clientFactories.entrySet())
    {
      DoNothingClientFactory factory = (DoNothingClientFactory)e.getValue();
      if (factory.getRunningClientCount() != 0)
      {
        fail("Not all clients were shut down from factory " + e.getKey());
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.