コード例 #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());
 }
コード例 #2
0
 private void unregisterFabricMBeans() {
   zooKeeperMBean.unregisterMBeanServer(mbeanServer.get());
   fileSystemMBean.unregisterMBeanServer(mbeanServer.get());
   managerMBean.unregisterMBeanServer(mbeanServer.get());
   healthCheck.unregisterMBeanServer(mbeanServer.get());
 }