@Override public int compareTo(MetricValue o) { if (__type_comparison_index() < o.__type_comparison_index()) return -1; if (__type_comparison_index() > o.__type_comparison_index()) return 1; return value_.compareTo(((HistogramMetricValue)o).value_); } }
@Override public int compareTo(MetricValue o) { if (__type_comparison_index() < o.__type_comparison_index()) return -1; if (__type_comparison_index() > o.__type_comparison_index()) return 1; return 0; } }
@Override public PathMatcher getPathMatcher() { return new PathMatcher(new PathMatcher.DoubleWildcardMatch()); }
/** * Get the value at the given percentile. */ public double percentile(double percentile) { return get(percentile * getEventCount() / 100); }
@Override public void doVisit(Visitor v) { v.accept(this); } }
/** * Start the push processor. */ public void start() { start(false, Thread.NORM_PRIORITY); }
/** * Run an update cycle. An update cycle consists of: - gathering raw metrics * - creating a new, minimal context - applying decorators against the * current and previous values - storing the collection values as the most * recent capture */ @Override public synchronized TimeSeriesCollection updateCollection() { // We override, so we can ensure only one runs at any given moment. return super.updateCollection(); }
@Override public int compareTo(MetricValue o) { if (__type_comparison_index() < o.__type_comparison_index()) return -1; if (__type_comparison_index() > o.__type_comparison_index()) return 1; return value_.compareTo(((HistogramMetricValue)o).value_); } }
@Override public int compareTo(MetricValue o) { if (__type_comparison_index() < o.__type_comparison_index()) return -1; if (__type_comparison_index() > o.__type_comparison_index()) return 1; return 0; } }
@Override public void doVisit(Visitor v) { v.accept(this); } }
/** * Start the push processor. * @param daemon If the thread should be a daemon thread. */ public void start(boolean daemon) { start(daemon, Thread.NORM_PRIORITY); }