Search in sources :

Example 1 with ServiceStateMBeanHandler

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();
}
Also used : PermissionAdminMBeanHandler(org.apache.aries.jmx.permissionadmin.PermissionAdminMBeanHandler) MBeanServiceTracker(org.apache.aries.jmx.MBeanServiceTracker) FrameworkMBeanHandler(org.apache.aries.jmx.framework.FrameworkMBeanHandler) PackageStateMBeanHandler(org.apache.aries.jmx.framework.PackageStateMBeanHandler) ProvisioningServiceMBeanHandler(org.apache.aries.jmx.provisioning.ProvisioningServiceMBeanHandler) BundleStateMBeanHandler(org.apache.aries.jmx.framework.BundleStateMBeanHandler) UserAdminMBeanHandler(org.apache.aries.jmx.useradmin.UserAdminMBeanHandler) ConfigurationAdminMBeanHandler(org.apache.aries.jmx.cm.ConfigurationAdminMBeanHandler) ProvisioningServiceMBeanHandler(org.apache.aries.jmx.provisioning.ProvisioningServiceMBeanHandler) MBeanHandler(org.apache.aries.jmx.MBeanHandler) PackageStateMBeanHandler(org.apache.aries.jmx.framework.PackageStateMBeanHandler) PermissionAdminMBeanHandler(org.apache.aries.jmx.permissionadmin.PermissionAdminMBeanHandler) BundleStateMBeanHandler(org.apache.aries.jmx.framework.BundleStateMBeanHandler) UserAdminMBeanHandler(org.apache.aries.jmx.useradmin.UserAdminMBeanHandler) FrameworkMBeanHandler(org.apache.aries.jmx.framework.FrameworkMBeanHandler) BundleWiringStateMBeanHandler(org.apache.aries.jmx.framework.wiring.BundleWiringStateMBeanHandler) ServiceStateMBeanHandler(org.apache.aries.jmx.framework.ServiceStateMBeanHandler) ServiceStateMBeanHandler(org.apache.aries.jmx.framework.ServiceStateMBeanHandler) ConfigurationAdminMBeanHandler(org.apache.aries.jmx.cm.ConfigurationAdminMBeanHandler) BundleWiringStateMBeanHandler(org.apache.aries.jmx.framework.wiring.BundleWiringStateMBeanHandler)

Aggregations

MBeanHandler (org.apache.aries.jmx.MBeanHandler)1 MBeanServiceTracker (org.apache.aries.jmx.MBeanServiceTracker)1 ConfigurationAdminMBeanHandler (org.apache.aries.jmx.cm.ConfigurationAdminMBeanHandler)1 BundleStateMBeanHandler (org.apache.aries.jmx.framework.BundleStateMBeanHandler)1 FrameworkMBeanHandler (org.apache.aries.jmx.framework.FrameworkMBeanHandler)1 PackageStateMBeanHandler (org.apache.aries.jmx.framework.PackageStateMBeanHandler)1 ServiceStateMBeanHandler (org.apache.aries.jmx.framework.ServiceStateMBeanHandler)1 BundleWiringStateMBeanHandler (org.apache.aries.jmx.framework.wiring.BundleWiringStateMBeanHandler)1 PermissionAdminMBeanHandler (org.apache.aries.jmx.permissionadmin.PermissionAdminMBeanHandler)1 ProvisioningServiceMBeanHandler (org.apache.aries.jmx.provisioning.ProvisioningServiceMBeanHandler)1 UserAdminMBeanHandler (org.apache.aries.jmx.useradmin.UserAdminMBeanHandler)1