Examples of TagsMetricsPair


Examples of org.apache.hadoop.metrics.MetricsServlet.TagsMetricsPair

  }
 
 
  public void testTagsMetricsPair() throws IOException {
    TagsMetricsPair pair = new TagsMetricsPair(outputRecord.getTagsCopy(),
        outputRecord.getMetricsCopy());
    String s = JSON.toString(pair);
    assertEquals(
        "[{\"testTag1\":\"testTagValue1\",\"testTag2\":\"testTagValue2\"},"+
        "{\"testMetric1\":1,\"testMetric2\":33}]", s);
View Full Code Here

Examples of org.apache.hadoop.metrics.MetricsServlet.TagsMetricsPair

  }
 
 
  public void testTagsMetricsPair() throws IOException {
    TagsMetricsPair pair = new TagsMetricsPair(outputRecord.getTagsCopy(),
        outputRecord.getMetricsCopy());
    String s = JSON.toString(pair);
    assertEquals(
        "[{\"testTag1\":\"testTagValue1\",\"testTag2\":\"testTagValue2\"},"+
        "{\"testMetric1\":1,\"testMetric2\":33}]", s);
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.