use of org.apache.druid.server.coordinator.CostBalancerStrategyFactory in project druid by druid-io.
the class LoadRuleTest method setUp.
@Before
public void setUp() {
EmittingLogger.registerEmitter(EMITTER);
EMITTER.start();
throttler = EasyMock.createMock(ReplicationThrottler.class);
exec = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(1));
balancerStrategy = new CostBalancerStrategyFactory().createBalancerStrategy(exec);
cachingCostBalancerStrategy = new CachingCostBalancerStrategy(ClusterCostCache.builder().build(), exec);
mockBalancerStrategy = EasyMock.createMock(BalancerStrategy.class);
}
Aggregations