Examples of pushMetric()


Examples of org.apache.hadoop.hbase.metrics.histogram.MetricsHistogram.pushMetric()

  public void testPushMetric() {
    final MetricsHistogram h = new MetricsHistogram("testHistogram", null);
    genRandomData(h);

    MetricsRecord mr = mock(MetricsRecord.class);
    h.pushMetric(mr);
   
    verify(mr).setMetric("testHistogram_num_ops", 10000L);
    verify(mr).setMetric(eq("testHistogram_min"), anyLong());
    verify(mr).setMetric(eq("testHistogram_max"), anyLong());
    verify(mr).setMetric(eq("testHistogram_mean"), anyFloat());
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsBase.pushMetric()

    synchronized (registry) {
      // Iterate through the registry to propagate the different rpc metrics.
      for (String metricName : registry.getKeyList() ) {
        MetricsBase value = registry.get(metricName);
        value.pushMetric(metricsRecord);
      }
    }
    metricsRecord.update();
  }
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsBase.pushMetric()

    synchronized (registry) {
      // Iterate through the registry to propagate the different rpc metrics.
      for (String metricName : registry.getKeyList() ) {
        MetricsBase value = registry.get(metricName);
        value.pushMetric(metricsRecord);
      }
    }
    metricsRecord.update();
  }
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsBase.pushMetric()

    synchronized (registry) {
      // Iterate through the registry to propagate the different rpc metrics.
      for (String metricName : registry.getKeyList() ) {
        MetricsBase value = registry.get(metricName);
        value.pushMetric(metricsRecord);
      }
    }
    metricsRecord.update();
  }
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.pushMetric()

  while (keyIter.hasNext()) {
    Object key = keyIter.next();
    MetricsTimeVaryingRate value = metricsList.get(key);

    value.pushMetric(metricsRecord);
  }
    }
    metricsRecord.update();
  }
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.pushMetric()

      // Iterate through the registry to propagate the different rpc metrics.

      for (String metricName : registry.getKeyList() ) {
        MetricsTimeVaryingRate value = (MetricsTimeVaryingRate) registry.get(metricName);

        value.pushMetric(metricsRecord);
      }
    }
    metricsRecord.update();
  }
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.pushMetric()

      // Iterate through the registry to propogate the different rpc metrics.

      for (String metricName : registry.getKeyList() ) {
        MetricsTimeVaryingRate value = (MetricsTimeVaryingRate) registry.get(metricName);

        value.pushMetric(metricsRecord);
      }
    }
    metricsRecord.update();
  }
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.pushMetric()

      // Iterate through the registry to propogate the different rpc metrics.

      for (String metricName : registry.getKeyList() ) {
        MetricsTimeVaryingRate value = (MetricsTimeVaryingRate) registry.get(metricName);

        value.pushMetric(metricsRecord);
      }
    }
    metricsRecord.update();
  }
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.pushMetric()

      // Iterate through the registry to propagate the different rpc metrics.

      for (String metricName : registry.getKeyList() ) {
        MetricsTimeVaryingRate value = (MetricsTimeVaryingRate) registry.get(metricName);

        value.pushMetric(metricsRecord);
      }
    }
    metricsRecord.update();
  }
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.pushMetric()

      // Iterate through the registry to propogate the different rpc metrics.

      for (String metricName : registry.getKeyList() ) {
        MetricsTimeVaryingRate value = (MetricsTimeVaryingRate) registry.get(metricName);

        value.pushMetric(metricsRecord);
      }
    }
    metricsRecord.update();
  }
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.