Search in sources :

Example 1 with JMXService

use of org.bboxdb.jmx.JMXService 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());
}
Also used : NetworkConnectionService(org.bboxdb.network.server.NetworkConnectionService) DistributedRecoveryService(org.bboxdb.distribution.DistributedRecoveryService) PerformanceCounterService(org.bboxdb.performance.PerformanceCounterService) JMXService(org.bboxdb.jmx.JMXService) ZookeeperInstanceRegisterer(org.bboxdb.distribution.zookeeper.ZookeeperInstanceRegisterer) TupleStoreManagerRegistry(org.bboxdb.storage.tuplestore.manager.TupleStoreManagerRegistry) MembershipConnectionService(org.bboxdb.distribution.membership.MembershipConnectionService) StatisticsUpdateService(org.bboxdb.distribution.statistics.StatisticsUpdateService) TupleStoreFlushZookeeperAdapter(org.bboxdb.distribution.TupleStoreFlushZookeeperAdapter)

Aggregations

DistributedRecoveryService (org.bboxdb.distribution.DistributedRecoveryService)1 TupleStoreFlushZookeeperAdapter (org.bboxdb.distribution.TupleStoreFlushZookeeperAdapter)1 MembershipConnectionService (org.bboxdb.distribution.membership.MembershipConnectionService)1 StatisticsUpdateService (org.bboxdb.distribution.statistics.StatisticsUpdateService)1 ZookeeperInstanceRegisterer (org.bboxdb.distribution.zookeeper.ZookeeperInstanceRegisterer)1 JMXService (org.bboxdb.jmx.JMXService)1 NetworkConnectionService (org.bboxdb.network.server.NetworkConnectionService)1 PerformanceCounterService (org.bboxdb.performance.PerformanceCounterService)1 TupleStoreManagerRegistry (org.bboxdb.storage.tuplestore.manager.TupleStoreManagerRegistry)1