Package com.alibaba.wasp.metrics.lib

Examples of com.alibaba.wasp.metrics.lib.MetricMutableHistogram


  }

  @Override
  public void updateHistogram(String name, long value) {
    MetricMutableHistogram histo = metricsRegistry.getHistogram(name);
    histo.add(value);
  }
View Full Code Here


   * @param name The name of the histogram
   * @param desc The description of the data in the histogram.
   * @return A new MutableHistogram
   */
  public MetricMutableHistogram newHistogram(String name, String desc) {
    MetricMutableHistogram histo = new MetricMutableHistogram(name, desc);
    return addNewMetricIfAbsent(name, histo, MetricMutableHistogram.class);
  }
View Full Code Here

  public MetricMutableHistogram getHistogram(String histoName) {
    // See getLongGauge for description on how this works.
    MetricMutable histo = metricsMap.get(histoName);
    if (histo == null) {
      MetricMutableHistogram newHisto = new MetricMutableHistogram(histoName,
          "");
      histo = metricsMap.putIfAbsent(histoName, newHisto);
      if (histo == null) {
        return newHisto;
      }
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.metrics.lib.MetricMutableHistogram

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.