Package info.ganglia.jmxetric

Examples of info.ganglia.jmxetric.JMXetricAgent.start()


  public void testRun() {
        JMXetricAgent a = null ;
        try {
            a = new JMXetricAgent();
            XMLConfigurationService.configure(a, "host=localhost,port=8649,wireformat31x=true,config=src/test/resources/jmxetric_test.xml");
            a.start();
            Thread.sleep(5000);
            GMetricResult.GMetricDetail floatResult = GMetricResult.getGMetric("ProcessName_TestExample_Float");
            assertEquals( Float.toString( Example.FLOAT_VALUE) , floatResult.value);
            assertEquals( "both", floatResult.slope);
            // TODO Add asserts
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.