use of org.apache.aries.jmx.framework.ServiceStateMBeanHandler in project aries by apache.
the class JMXAgentImpl method start.
/**
* @see org.apache.aries.jmx.agent.JMXAgent#start()
*/
public synchronized void start() {
logger.log(LogService.LOG_INFO, "Starting JMX OSGi agent");
// Initialize static handlers
// Those handlers do not track dependencies
JMXAgentContext agentContext = new JMXAgentContext(context, this, logger);
MBeanHandler frameworkHandler = new FrameworkMBeanHandler(agentContext);
mbeansHandlers.put(frameworkHandler, Boolean.FALSE);
frameworkHandler.open();
MBeanHandler bundleStateHandler = new BundleStateMBeanHandler(agentContext, stateConfig);
mbeansHandlers.put(bundleStateHandler, Boolean.FALSE);
bundleStateHandler.open();
MBeanHandler revisionsStateHandler = new BundleWiringStateMBeanHandler(agentContext);
mbeansHandlers.put(revisionsStateHandler, Boolean.FALSE);
revisionsStateHandler.open();
MBeanHandler serviceStateHandler = new ServiceStateMBeanHandler(agentContext, stateConfig);
mbeansHandlers.put(serviceStateHandler, Boolean.FALSE);
serviceStateHandler.open();
MBeanHandler packageStateHandler = new PackageStateMBeanHandler(agentContext);
mbeansHandlers.put(packageStateHandler, Boolean.FALSE);
packageStateHandler.open();
MBeanHandler permissionAdminHandler = new PermissionAdminMBeanHandler(agentContext);
mbeansHandlers.put(permissionAdminHandler, Boolean.FALSE);
permissionAdminHandler.open();
MBeanHandler userAdminHandler = new UserAdminMBeanHandler(agentContext);
mbeansHandlers.put(userAdminHandler, Boolean.FALSE);
userAdminHandler.open();
MBeanHandler configAdminHandler = new ConfigurationAdminMBeanHandler(agentContext);
mbeansHandlers.put(configAdminHandler, Boolean.FALSE);
configAdminHandler.open();
MBeanHandler provServiceHandler = new ProvisioningServiceMBeanHandler(agentContext);
mbeansHandlers.put(provServiceHandler, Boolean.FALSE);
provServiceHandler.open();
// Track mbean servers
mbeanServiceTracker = new MBeanServiceTracker(agentContext);
mbeanServiceTracker.open();
}
Aggregations