Package com.rackspacecloud.blueflood.tools.jmx

Examples of com.rackspacecloud.blueflood.tools.jmx.JmxBooleanGauge


            final MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
            String name = String.format("com.rackspacecloud.blueflood.service:type=%s", getClass().getSimpleName());
            final ObjectName nameObj = new ObjectName(name);
            mbs.registerMBean(this, nameObj);
            activeGauge = Metrics.getRegistry().register(MetricRegistry.name(getClass(), "Active"),
                    new JmxBooleanGauge(nameObj, "Active"));

            periodGauge = Metrics.getRegistry().register(MetricRegistry.name(getClass(), "Period"),
                    new JmxAttributeGauge(nameObj, "Period"));

        } catch (Exception exc) {
View Full Code Here


            final ObjectName nameObj = new ObjectName(name);
            mbs.registerMBean(this, nameObj);

            MetricRegistry reg = Metrics.getRegistry();
            activeGauge = reg.register(MetricRegistry.name(RollupService.class, "Active"),
                    new JmxBooleanGauge(nameObj, "Active"));
            inflightRollupGauge = reg.register(MetricRegistry.name(RollupService.class, "In Flight Rollup Count"),
                    new JmxAttributeGauge(nameObj, "InFlightRollupCount"));

            pollerPeriodGauge = reg.register(MetricRegistry.name(RollupService.class, "Poller Period"),
                    new JmxAttributeGauge(nameObj, "PollerPeriod"));
View Full Code Here

TOP

Related Classes of com.rackspacecloud.blueflood.tools.jmx.JmxBooleanGauge

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.