use of com.twitter.finagle.stats.NullStatsReceiver in project distributedlog by twitter.
the class DistributedLogClientBuilder method buildClient.
DistributedLogClientImpl buildClient() {
Preconditions.checkNotNull(_name, "No name provided.");
Preconditions.checkNotNull(_clientId, "No client id provided.");
Preconditions.checkNotNull(_routingServiceBuilder, "No routing service builder provided.");
Preconditions.checkNotNull(_statsReceiver, "No stats receiver provided.");
if (null == _streamStatsReceiver) {
_streamStatsReceiver = new NullStatsReceiver();
}
RoutingService routingService = _routingServiceBuilder.statsReceiver(_statsReceiver.scope("routing")).build();
DistributedLogClientImpl clientImpl = new DistributedLogClientImpl(_name, _clientId, routingService, _clientBuilder, _clientConfig, _statsReceiver, _streamStatsReceiver, _regionResolver, _enableRegionStats);
routingService.startService();
clientImpl.handshake();
return clientImpl;
}
Aggregations