Examples of GMonitor


Examples of info.ganglia.GMonitor

  @Test
  @SuppressWarnings("unused")
  public void testConstructor2() {
    try {
      GMonitor gmon = new GMonitor(30l);
      GMetricInteger testMetric = (GMetricInteger) gmon.createGMetric(host, "Ganglia Test", GMetric.VALUE_TYPE_INT, "count", GMetric.SLOPE_UNSPECIFIED, true);
    } catch (IOException e) {
      e.printStackTrace();
      fail();
    }
  }
View Full Code Here

Examples of info.ganglia.GMonitor

 
  @Test
  @SuppressWarnings("unused")
  public void testConstructor3() {
    try {
      GMonitor gmon = new GMonitor(MULTICAST_ADDRESS);
      GMetricInteger testMetric = (GMetricInteger) gmon.createGMetric(host, "Ganglia Test", GMetric.VALUE_TYPE_INT, "count", GMetric.SLOPE_UNSPECIFIED, true);
    } catch (IOException e) {
      e.printStackTrace();
      fail();
    }
  }
View Full Code Here

Examples of info.ganglia.GMonitor

 
  @Test
  @SuppressWarnings("unused")
  public void testConstructor4() {
    try {
      GMonitor gmon = new GMonitor(MULTICAST_ADDRESS, 30l);
      GMetricInteger testMetric = (GMetricInteger) gmon.createGMetric(host, "Ganglia Test", GMetric.VALUE_TYPE_INT, "count", GMetric.SLOPE_UNSPECIFIED, true);
    } catch (IOException e) {
      e.printStackTrace();
      fail();
    }
  }
View Full Code Here

Examples of info.ganglia.GMonitor

 
  @SuppressWarnings("unchecked")
  @Test
  public void testSendGMetricInit() {
    try {
      GMonitor gmon = new GMonitor(MULTICAST_ADDRESS, 30l);
      Class[] inputType = new Class[1];
      Object[] input = new Object[1];
      inputType[0] = Metricable.class;
      input[0] = null;
      UnitTestHelper.invokeMethod(gmon, "sendGMetricInit", inputType, input);
View Full Code Here

Examples of info.ganglia.GMonitor

 
  @SuppressWarnings("unchecked")
  @Test
  public void testSendGMetricUpdate() {
    try {
      GMonitor gmon = new GMonitor(MULTICAST_ADDRESS, 30l);
      Class[] inputType = new Class[1];
      Object[] input = new Object[1];
      inputType[0] = Metricable.class;
      input[0] = null;
      UnitTestHelper.invokeMethod(gmon, "sendGMetricUpdate", inputType, input);
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.