use of org.bboxdb.performance.PerformanceCounterService in project bboxdb by jnidzwetzki.
the class BBoxDBMain method init.
public void init() throws Exception {
logger.info("Init the BBoxDB");
services.clear();
// The storage registry
final TupleStoreManagerRegistry storageRegistry = new TupleStoreManagerRegistry();
services.add(storageRegistry);
// The zookeeper registerer
final ZookeeperInstanceRegisterer zookeeperClient = new ZookeeperInstanceRegisterer();
services.add(zookeeperClient);
// The membership connection service
final MembershipConnectionService membershipService = createMembershipService(storageRegistry);
services.add(membershipService);
// The network connection handler
final NetworkConnectionService connectionHandler = createConnectionHandler(storageRegistry);
services.add(connectionHandler);
// The recovery service
final DistributedRecoveryService recoveryService = new DistributedRecoveryService(storageRegistry);
services.add(recoveryService);
// The statistics update service
final StatisticsUpdateService statisticsService = new StatisticsUpdateService(storageRegistry);
services.add(statisticsService);
// The JMX service
final JMXService jmxService = new JMXService(this);
services.add(jmxService);
// The performance counter service
final PerformanceCounterService performanceCounterService = new PerformanceCounterService();
services.add(performanceCounterService);
// Send flush events to zookeeper
storageRegistry.registerSSTableFlushCallback(new TupleStoreFlushZookeeperAdapter());
}
Aggregations