Example #1
0
 private void registerFabricMBeans() {
   this.healthCheck = new HealthCheck(fabricService.get());
   this.managerMBean = new FabricManager((FabricServiceImpl) fabricService.get());
   this.zooKeeperMBean = new ZooKeeperFacade((FabricServiceImpl) fabricService.get());
   this.fileSystemMBean = new FileSystem(runtimeProperties.get());
   healthCheck.registerMBeanServer(shutdownTracker, mbeanServer.get());
   managerMBean.registerMBeanServer(shutdownTracker, mbeanServer.get());
   fileSystemMBean.registerMBeanServer(shutdownTracker, mbeanServer.get());
   zooKeeperMBean.registerMBeanServer(shutdownTracker, mbeanServer.get());
 }