Search in sources :

Example 1 with ProfileManagement

use of io.fabric8.api.mxbean.ProfileManagement in project fabric8 by jboss-fuse.

the class MXBeansProvider method activateInternal.

private void activateInternal() {
    MBeanServer server = mbeanServer.get();
    try {
        ProfileManagement profileMXBean = new ProfileManagementImpl();
        server.registerMBean(new StandardMBean(profileMXBean, ProfileManagement.class, true), new ObjectName(ProfileManagement.OBJECT_NAME));
    } catch (JMException ex) {
        throw new IllegalStateException(ex);
    }
}
Also used : ProfileManagement(io.fabric8.api.mxbean.ProfileManagement) StandardMBean(javax.management.StandardMBean) JMException(javax.management.JMException) MBeanServer(javax.management.MBeanServer) ObjectName(javax.management.ObjectName)

Aggregations

ProfileManagement (io.fabric8.api.mxbean.ProfileManagement)1 JMException (javax.management.JMException)1 MBeanServer (javax.management.MBeanServer)1 ObjectName (javax.management.ObjectName)1 StandardMBean (javax.management.StandardMBean)1