use of org.apache.gobblin.broker.SharedResourcesBrokerImpl in project incubator-gobblin by apache.
the class AsyncHttpWriterTest method createMockBroker.
private static SharedResourcesBroker createMockBroker() {
Joiner JOINER = Joiner.on(".");
Config config = ConfigFactory.parseMap(ImmutableMap.of(JOINER.join(BrokerConstants.GOBBLIN_BROKER_CONFIG_PREFIX, SharedLimiterFactory.NAME, SharedLimiterFactory.LIMITER_CLASS_KEY), "qps", JOINER.join(BrokerConstants.GOBBLIN_BROKER_CONFIG_PREFIX, SharedLimiterFactory.NAME, RateBasedLimiter.Factory.QPS_KEY), "10"));
SharedResourcesBrokerImpl broker = SharedResourcesBrokerFactory.<SimpleScopeType>createDefaultTopLevelBroker(config, SimpleScopeType.GLOBAL.defaultScopeInstance());
return broker;
}
Aggregations