Examples of MetricMutableStat


Examples of org.apache.hadoop.metrics2.lib.MetricMutableStat

   * @param extended produce extended stat (stdev, min/max etc.) if true.
   * @return a new metric object
   */
  public MetricMutableStat newStat(String name, String description,
      String sampleName, String valueName, boolean extended) {
    MetricMutableStat ret = mf.newStat(name, description, sampleName,
        valueName, extended);
    return addNewMetricIfAbsent(name, ret, MetricMutableStat.class);
  }
View Full Code Here

Examples of org.apache.hadoop.metrics2.lib.MetricMutableStat

    batchMutateStat.add(diff);
  }

  @Override
  public void incMethodTime(String name, long time) {
    MetricMutableStat s = getMetricsRegistry().newStat(name);
    s.add(time);
  }
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.