Examples of GMetric


Examples of info.ganglia.metric.GMetric

 
  @SuppressWarnings("unchecked")
  @Test
  public void testWriteXDRString() {
    try {
      GMetric gmetric = new GMetric(host, "Ganglia Test", GMetric.VALUE_TYPE_INT, "count", GMetric.SLOPE_UNSPECIFIED, true);
      Class[] inputType = new Class[2];
      Object[] input = new Object[2];
      inputType[0] = DataOutputStream.class;
      inputType[1] = String.class;
      input[0] = null;
View Full Code Here

Examples of info.ganglia.metric.GMetric

  @Test
  @SuppressWarnings("unused")
  public void testConstructorNullArgsConst1() {
    try {
      GMetric gmetric = new GMetric(null, "Ganglia Test", GMetric.VALUE_TYPE_INT, "count", GMetric.SLOPE_UNSPECIFIED, true);
    } catch (IllegalArgumentException e) {
      assertTrue(true);
    }
   
    try {
      GMetric gmetric = new GMetric(host, null, GMetric.VALUE_TYPE_INT, "count", GMetric.SLOPE_UNSPECIFIED, true);
    } catch (IllegalArgumentException e) {
      assertTrue(true);
    }
   
    try {
      GMetric gmetric = new GMetric(host, "Ganglia Test", null, "count", GMetric.SLOPE_UNSPECIFIED, true);
    } catch (IllegalArgumentException e) {
      assertTrue(true);
    }
   
    try {
      GMetric gmetric = new GMetric(host, "Ganglia Test", GMetric.VALUE_TYPE_INT, null, GMetric.SLOPE_UNSPECIFIED, true);
    } catch (IllegalArgumentException e) {
      assertTrue(true);
    }
  }
View Full Code Here

Examples of info.ganglia.metric.GMetric

 
  @Test
  @SuppressWarnings("unused")
  public void testConstructorNullArgsConst2() {
    try {
      GMetric gmetric = new GMetric(host, "Ganglia Test", GMetric.VALUE_TYPE_INT, "count", GMetric.SLOPE_UNSPECIFIED, true);
    } catch (IllegalArgumentException e) {
      assertTrue(true);
    }catch (Exception e) {
      fail();
    }
    try {
      GMetric gmetric = new GMetric(null, "Ganglia Test", GMetric.VALUE_TYPE_INT, "count", GMetric.SLOPE_UNSPECIFIED, true);
    } catch (IllegalArgumentException e) {
      assertTrue(true);
    }catch (Exception e) {
      fail();
    }

    try {
      GMetric gmetric = new GMetric(host, null, GMetric.VALUE_TYPE_INT, "count", GMetric.SLOPE_UNSPECIFIED, true);
    } catch (IllegalArgumentException e) {
      assertTrue(true);
    }catch (Exception e) {
      fail();
    }
   
    try {
      GMetric gmetric = new GMetric(host, "Ganglia Test", null, "count", GMetric.SLOPE_UNSPECIFIED, true);
    } catch (IllegalArgumentException e) {
      assertTrue(true);
    }catch (Exception e) {
      fail();
    }
   
    try {
      GMetric gmetric = new GMetric(host, "Ganglia Test", GMetric.VALUE_TYPE_INT, null, GMetric.SLOPE_UNSPECIFIED, true);
    } catch (IllegalArgumentException e) {
      assertTrue(true);
    }catch (Exception e) {
      fail();
    }
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.