Package org.apache.hadoop.metrics.MetricsServlet

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


  }
 
 
  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

Related Classes of org.apache.hadoop.metrics.MetricsServlet.TagsMetricsPair

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.