use of javax.management.StandardMBean in project fabric8 by jboss-fuse.
the class MQManager method activate.
@Activate
void activate() throws Exception {
Objects.notNull(fabricService, "fabricService");
Objects.notNull(profileService, "profileService");
mqService = createMQService(fabricService, runtimeProperties);
if (mbeanServer != null) {
StandardMBean mbean = new StandardMBean(this, MQManagerMXBean.class);
JMXUtils.registerMBean(mbean, mbeanServer, OBJECT_NAME);
}
}
use of javax.management.StandardMBean in project fabric8 by jboss-fuse.
the class ZooKeeperFacade method registerMBeanServer.
public void registerMBeanServer(ShutdownTracker shutdownTracker, MBeanServer mbeanServer) {
try {
ObjectName name = getObjectName();
if (!mbeanServer.isRegistered(name)) {
StandardMBean mbean = new StandardMBean(this, ZooKeeperFacadeMXBean.class);
mbeanServer.registerMBean(mbean, name);
}
} catch (Exception e) {
LOG.warn("An error occurred during mbean server registration: " + e, e);
}
}
use of javax.management.StandardMBean in project fabric8 by jboss-fuse.
the class FabricManager method registerMBeanServer.
public void registerMBeanServer(ShutdownTracker shutdownTracker, MBeanServer mbeanServer) {
try {
ObjectName name = getObjectName();
if (!mbeanServer.isRegistered(name)) {
StandardMBean mbean = new StandardMBean(this, FabricManagerMBean.class);
mbeanServer.registerMBean(mbean, name);
}
} catch (Exception e) {
LOG.warn("An error occurred during mbean server registration: " + e, e);
}
}
use of javax.management.StandardMBean in project fabric8 by jboss-fuse.
the class HealthCheck method registerMBeanServer.
public void registerMBeanServer(ShutdownTracker shutdownTracker, MBeanServer mbeanServer) {
try {
ObjectName name = getObjectName();
if (!mbeanServer.isRegistered(name)) {
StandardMBean mbean = new StandardMBean(this, HealthCheckMBean.class);
mbeanServer.registerMBean(mbean, name);
}
} catch (Exception e) {
LOG.warn("An error occurred during mbean server registration: " + e, e);
}
}
use of javax.management.StandardMBean in project accumulo by apache.
the class TabletServerMBeanImpl method register.
@Override
public void register() throws Exception {
// Do this because interface not in same package.
StandardMBean mbean = new StandardMBean(this, TabletServerMBean.class, false);
register(mbean);
}
Aggregations