Examples of MetricsVisitor


Examples of org.apache.hadoop.metrics2.MetricsVisitor

  /**
   * Test the common use cases
   */
  @Test public void testCommon() {
    MetricsVisitor visitor = mock(MetricsVisitor.class);
    MetricsRegistry registry = new MetricsRegistry("test");
    List<AbstractMetric> metrics = MetricsLists.builder("test")
        .addCounter(info("c1", "int counter"), 1)
        .addCounter(info("c2", "long counter"), 2L)
        .addGauge(info("g1", "int gauge"), 5)
View Full Code Here

Examples of org.apache.hadoop.metrics2.MetricsVisitor

  /**
   * Test the common use cases
   */
  @Test public void testCommon() {
    MetricsVisitor visitor = mock(MetricsVisitor.class);
    List<Metric> metrics = Arrays.asList(
        new MetricCounterInt("c1", "int counter", 1),
        new MetricCounterLong("c2", "long counter", 2L),
        new MetricGaugeInt("g1", "int gauge", 5),
        new MetricGaugeLong("g2", "long gauge", 6L),
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.