/** * Constructor - create a new metric * @param nam the name of the metrics to be used to publish the metric * @param registry - where the metrics object will be registered */ public MetricsIntValue(final String nam, final MetricsRegistry registry, final String description) { super(nam, description); value = 0; changed = false; registry.add(nam, this); }
/** * Constructor - create a new metric * @param nam the name of the metrics to be used to publish the metric * @param registry - where the metrics object will be registered */ public MetricsLongValue(final String nam, final MetricsRegistry registry, final String description) { super(nam, description); value = 0; changed = false; registry.add(nam, this); }
/** * Constructor - create a new metric * @param nam the name of the metrics to be used to publish the metric * @param registry - where the metrics object will be registered */ public MetricsTimeVaryingLong(final String nam, MetricsRegistry registry, final String description) { super(nam, description); currentValue = 0; previousIntervalValue = 0; registry.add(nam, this); }
/** * Constructor - create a new metric * @param nam the name of the metrics to be used to publish the metric * @param registry - where the metrics object will be registered */ public MetricsTimeVaryingLong(final String nam, MetricsRegistry registry, final String description) { super(nam, description); currentValue = 0; previousIntervalValue = 0; registry.add(nam, this); }
/** * Constructor - create a new metric * @param nam the name of the metrics to be used to publish the metric * @param registry - where the metrics object will be registered */ public MetricsIntValue(final String nam, final MetricsRegistry registry, final String description) { super(nam, description); value = 0; changed = false; registry.add(nam, this); }
/** * Constructor - create a new metric * @param nam the name of the metrics to be used to publish the metric * @param registry - where the metrics object will be registered */ public MetricsLongValue(final String nam, final MetricsRegistry registry, final String description) { super(nam, description); value = 0; changed = false; registry.add(nam, this); }
/** * Constructor - create a new metric * @param nam the name of the metrics to be used to publish the metric * @param registry - where the metrics object will be registered */ public MetricsLongValue(final String nam, final MetricsRegistry registry, final String description) { super(nam, description); value = 0; changed = false; registry.add(nam, this); }
/** * Constructor - create a new metric * @param nam the name of the metrics to be used to publish the metric * @param registry - where the metrics object will be registered */ public MetricsIntValue(final String nam, final MetricsRegistry registry, final String description) { super(nam, description); value = 0; changed = false; registry.add(nam, this); }
/** * Constructor - create a new metric * @param nam the name of the metrics to be used to publish the metric * @param registry - where the metrics object will be registered */ public MetricsIntValue(final String nam, final MetricsRegistry registry, final String description) { super(nam, description); value = 0; changed = false; registry.add(nam, this); }
/** * Constructor - create a new metric * @param nam the name of the metrics to be used to publish the metric * @param registry - where the metrics object will be registered */ public MetricsTimeVaryingLong(final String nam, MetricsRegistry registry, final String description) { super(nam, description); currentValue = 0; previousIntervalValue = 0; registry.add(nam, this); }
public MetricsString(final String name, final MetricsRegistry registry, final String value) { super(name, NO_DESCRIPTION); this.value = value; registry.add(name, this); } public MetricsString(final String name, final String description,
public MetricsString(final String name, final String description, final MetricsRegistry registry, final String value) { super(name, description); this.value = value; registry.add(name, this); }
/** * Constructor - create a new metric * @param nam the name of the metrics to be used to publish the metric * @param registry - where the metrics object will be registered */ public MetricsLongValue(final String nam, final MetricsRegistry registry, final String description) { super(nam, description); value = 0; changed = false; registry.add(nam, this); }
/** * Constructor - create a new metric * @param nam the name of the metrics to be used to publish the metric * @param registry - where the metrics object will be registered */ public MetricsTimeVaryingLong(final String nam, MetricsRegistry registry, final String description) { super(nam, description); currentValue = 0; previousIntervalValue = 0; lock = new ReentrantLock(false); registry.add(nam, this); }
public MetricsRate(final String name, final MetricsRegistry registry, final String description) { super(name, description); this.value = 0; this.prevRate = 0; this.ts = System.currentTimeMillis(); registry.add(name, this); }
/** * Constructor - create a new metric * @param nam the name of the metrics to be used to publish the metric * @param registry - where the metrics object will be registered */ public MetricsTimeVaryingRate(final String nam, final MetricsRegistry registry, final String description) { super(nam, description); currentData = new Metrics(); previousIntervalData = new Metrics(); minMax = new MinMax(); registry.add(nam, this); }
/** * Constructor - create a new metric * @param nam the name of the metrics to be used to publish the metric * @param registry - where the metrics object will be registered */ public MetricsTimeVaryingRate(final String nam, final MetricsRegistry registry, final String description) { super(nam, description); currentData = new Metrics(); previousIntervalData = new Metrics(); minMax = new MinMax(); registry.add(nam, this); }
/** * Constructor - create a new metric * @param nam the name of the metrics to be used to publish the metric * @param registry - where the metrics object will be registered */ public MetricsTimeVaryingRate(final String nam, final MetricsRegistry registry, final String description) { super(nam, description); currentData = new Metrics(); previousIntervalData = new Metrics(); minMax = new MinMax(); registry.add(nam, this); }
private static MetricsRegistry copyMinusHBaseMetrics(final MetricsRegistry mr) { MetricsRegistry copy = new MetricsRegistry(); for (MetricsBase metric : mr.getMetricsList()) { if (metric instanceof MetricsRate || metric instanceof MetricsString || metric instanceof MetricsHistogram || metric instanceof ExactCounterMetric) { continue; } copy.add(metric.getName(), metric); } return copy; }
/** * Constructor - create a new metric * @param nam the name of the metrics to be used to publish the metric * @param registry - where the metrics object will be registered */ public MetricsTimeVaryingRate(final String nam, final MetricsRegistry registry, final String description) { super(nam, description); currentData = new Metrics(); previousIntervalData = new Metrics(); minMax = new MinMax(); registry.add(nam, this); }