A C D E F G H I M N O R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addListener(MetricRegistry.Listener) - Method in class org.xbib.metrics.common.MetricRegistry
-
Adds a
MetricRegistry.Listenerto a collection of listeners that will be notified on metric creation.
C
- close() - Method in class org.xbib.metrics.common.Sampler.Context
-
Equivalent to calling
Sampler.Context.stop(). - counter(String) - Method in class org.xbib.metrics.common.MetricRegistry
- counter(MetricName) - Method in class org.xbib.metrics.common.MetricRegistry
-
Return the
CountMetricregistered under this name; or create and register a newCountMetricif none is registered. - CountMetric - Class in org.xbib.metrics.common
-
An incrementing and decrementing counter metric.
- CountMetric() - Constructor for class org.xbib.metrics.common.CountMetric
D
- dec() - Method in class org.xbib.metrics.common.CountMetric
-
Decrement the counter by one.
- dec() - Method in class org.xbib.metrics.common.Histogram
- dec(long) - Method in class org.xbib.metrics.common.CountMetric
-
Decrement the counter by
n. - dec(long) - Method in class org.xbib.metrics.common.Histogram
- dec(String, String, String) - Method in class org.xbib.metrics.common.CountMetric
- dec(String, String, String) - Method in class org.xbib.metrics.common.Histogram
- dump(OutputStream) - Method in class org.xbib.metrics.common.WeightedSnapshot
-
Writes the values of the snapshot to the given stream.
E
- elapsed() - Method in class org.xbib.metrics.common.Meter
- ExponentiallyDecayingReservoir - Class in org.xbib.metrics.common
-
An exponentially-decaying random reservoir of
longs. - ExponentiallyDecayingReservoir() - Constructor for class org.xbib.metrics.common.ExponentiallyDecayingReservoir
-
Creates a new
ExponentiallyDecayingReservoirof 1028 elements, which offers a 99.9% confidence level with a 5% margin of error assuming a normal distribution, and an alpha factor of 0.015, which heavily biases the reservoir to the past 5 minutes of measurements. - ExponentiallyDecayingReservoir(int, double) - Constructor for class org.xbib.metrics.common.ExponentiallyDecayingReservoir
-
Creates a new
ExponentiallyDecayingReservoir. - ExponentiallyDecayingReservoir(int, double, Clock) - Constructor for class org.xbib.metrics.common.ExponentiallyDecayingReservoir
-
Creates a new
ExponentiallyDecayingReservoir. - ExpWeightedMovingAverage - Class in org.xbib.metrics.common
-
An exponentially-weighted moving average.
- ExpWeightedMovingAverage(double, long, TimeUnit) - Constructor for class org.xbib.metrics.common.ExpWeightedMovingAverage
-
Create a new EWMA with a specific smoothing constant.
F
- fifteenMinuteEWMA() - Static method in class org.xbib.metrics.common.ExpWeightedMovingAverage
-
Creates a new EWMA which is equivalent to the UNIX fifteen minute load average and which expects to be ticked every 5 seconds.
- fiveMinuteEWMA() - Static method in class org.xbib.metrics.common.ExpWeightedMovingAverage
-
Creates a new EWMA which is equivalent to the UNIX five minute load average and which expects to be ticked every 5 seconds.
G
- get75thPercentile() - Method in class org.xbib.metrics.common.WeightedSnapshot
-
Returns the value at the 75th percentile in the distribution.
- get95thPercentile() - Method in class org.xbib.metrics.common.WeightedSnapshot
-
Returns the value at the 95th percentile in the distribution.
- get98thPercentile() - Method in class org.xbib.metrics.common.WeightedSnapshot
-
Returns the value at the 98th percentile in the distribution.
- get999thPercentile() - Method in class org.xbib.metrics.common.WeightedSnapshot
-
Returns the value at the 99.9th percentile in the distribution.
- get99thPercentile() - Method in class org.xbib.metrics.common.WeightedSnapshot
-
Returns the value at the 99th percentile in the distribution.
- getCount() - Method in class org.xbib.metrics.common.CountMetric
-
Returns the counter's current value.
- getCount() - Method in class org.xbib.metrics.common.Histogram
-
Returns the number of values recorded.
- getCount() - Method in class org.xbib.metrics.common.Meter
- getCount() - Method in class org.xbib.metrics.common.Sampler
- getCounters() - Method in class org.xbib.metrics.common.MetricRegistry
-
Returns a map of all the counters in the registry and their names.
- getCounters(MetricFilter) - Method in class org.xbib.metrics.common.MetricRegistry
-
Returns a map of all the counters in the registry and their names which match the given filter.
- getDecChecksum(String, String) - Method in class org.xbib.metrics.common.CountMetric
- getDecChecksum(String, String) - Method in class org.xbib.metrics.common.Histogram
- getFifteenMinuteRate() - Method in class org.xbib.metrics.common.Meter
- getFifteenMinuteRate() - Method in class org.xbib.metrics.common.Sampler
- getFiveMinuteRate() - Method in class org.xbib.metrics.common.Meter
- getFiveMinuteRate() - Method in class org.xbib.metrics.common.Sampler
- getGauges() - Method in class org.xbib.metrics.common.MetricRegistry
-
Returns a map of all the gauges in the registry and their names.
- getGauges(MetricFilter) - Method in class org.xbib.metrics.common.MetricRegistry
-
Returns a map of all the gauges in the registry and their names which match the given filter.
- getHistograms() - Method in class org.xbib.metrics.common.MetricRegistry
-
Returns a map of all the histograms in the registry and their names.
- getHistograms(MetricFilter) - Method in class org.xbib.metrics.common.MetricRegistry
-
Returns a map of all the histograms in the registry and their names which match the given filter.
- getIncChecksum(String, String) - Method in class org.xbib.metrics.common.CountMetric
- getIncChecksum(String, String) - Method in class org.xbib.metrics.common.Histogram
- getMax() - Method in class org.xbib.metrics.common.WeightedSnapshot
-
Returns the highest value in the snapshot.
- getMean() - Method in class org.xbib.metrics.common.WeightedSnapshot
-
Returns the weighted arithmetic mean of the values in the snapshot.
- getMeanRate() - Method in class org.xbib.metrics.common.Meter
- getMeanRate() - Method in class org.xbib.metrics.common.Sampler
- getMedian() - Method in class org.xbib.metrics.common.WeightedSnapshot
-
Returns the median value in the distribution.
- getMeters() - Method in class org.xbib.metrics.common.MetricRegistry
-
Returns a map of all the meters in the registry and their names.
- getMeters(MetricFilter) - Method in class org.xbib.metrics.common.MetricRegistry
-
Returns a map of all the meters in the registry and their names which match the given filter.
- getMetrics() - Method in class org.xbib.metrics.common.MetricRegistry
- getMin() - Method in class org.xbib.metrics.common.WeightedSnapshot
-
Returns the lowest value in the snapshot.
- getNames() - Method in class org.xbib.metrics.common.MetricRegistry
-
Returns a set of the names of all the metrics in the registry.
- getOneMinuteRate() - Method in class org.xbib.metrics.common.Meter
- getOneMinuteRate() - Method in class org.xbib.metrics.common.Sampler
- getRate(TimeUnit) - Method in class org.xbib.metrics.common.ExpWeightedMovingAverage
-
Returns the rate in the given units of time.
- getSnapshot() - Method in class org.xbib.metrics.common.ExponentiallyDecayingReservoir
- getSnapshot() - Method in class org.xbib.metrics.common.Histogram
- getSnapshot() - Method in class org.xbib.metrics.common.Sampler
- getStdDev() - Method in class org.xbib.metrics.common.WeightedSnapshot
-
Returns the weighted standard deviation of the values in the snapshot.
- getTimers() - Method in class org.xbib.metrics.common.MetricRegistry
-
Returns a map of all the timers in the registry and their names.
- getTimers(MetricFilter) - Method in class org.xbib.metrics.common.MetricRegistry
-
Returns a map of all the timers in the registry and their names which match the given filter.
- getValue(double) - Method in class org.xbib.metrics.common.WeightedSnapshot
-
Returns the value at the given quantile.
- getValues() - Method in class org.xbib.metrics.common.WeightedSnapshot
-
Returns the entire set of values in the snapshot.
H
- histogram(String) - Method in class org.xbib.metrics.common.MetricRegistry
- histogram(MetricName) - Method in class org.xbib.metrics.common.MetricRegistry
- Histogram - Class in org.xbib.metrics.common
-
A metric which calculates the distribution of a value.
- Histogram(Reservoir) - Constructor for class org.xbib.metrics.common.Histogram
-
Creates a new
Histogramwith the given reservoir.
I
- inc() - Method in class org.xbib.metrics.common.CountMetric
-
Increment the counter by one.
- inc() - Method in class org.xbib.metrics.common.Histogram
- inc(long) - Method in class org.xbib.metrics.common.CountMetric
-
Increment the counter by
n. - inc(long) - Method in class org.xbib.metrics.common.Histogram
-
Adds a recorded value.
- inc(String, String, String) - Method in class org.xbib.metrics.common.CountMetric
- inc(String, String, String) - Method in class org.xbib.metrics.common.Histogram
M
- mark() - Method in class org.xbib.metrics.common.Meter
-
Mark the occurrence of an event.
- mark(long) - Method in class org.xbib.metrics.common.Meter
-
Mark the occurrence of a given number of events.
- meter(String) - Method in class org.xbib.metrics.common.MetricRegistry
- meter(MetricName) - Method in class org.xbib.metrics.common.MetricRegistry
- Meter - Class in org.xbib.metrics.common
-
A meter metric which measures mean throughput and one-, five-, and fifteen-minute exponentially-weighted moving average throughputs.
- Meter(ScheduledExecutorService) - Constructor for class org.xbib.metrics.common.Meter
-
Creates a new
Meter. - Meter(ScheduledExecutorService, Clock) - Constructor for class org.xbib.metrics.common.Meter
-
Creates a new
Meter. - MetricRegistry - Class in org.xbib.metrics.common
-
A registry of metric instances.
- MetricRegistry() - Constructor for class org.xbib.metrics.common.MetricRegistry
-
Creates a new
MetricRegistry. - MetricRegistry(ConcurrentMap<MetricName, Metric>) - Constructor for class org.xbib.metrics.common.MetricRegistry
-
Creates a
MetricRegistrywith a customConcurrentMapimplementation for use inside the registry. - MetricRegistry.Listener - Interface in org.xbib.metrics.common
-
Listeners for events from the registry.
N
- name(Class<?>, String...) - Static method in class org.xbib.metrics.common.MetricRegistry
- name(String, String...) - Static method in class org.xbib.metrics.common.MetricRegistry
-
Shorthand method for backwards compatibility in creating metric names.
O
- onCounterAdded(MetricName, CountMetric) - Method in interface org.xbib.metrics.common.MetricRegistry.Listener
-
Called when a
CountMetricis added to the registry. - onCounterRemoved(MetricName) - Method in interface org.xbib.metrics.common.MetricRegistry.Listener
-
Called when a
CountMetricis removed from the registry. - oneMinuteEWMA() - Static method in class org.xbib.metrics.common.ExpWeightedMovingAverage
-
Creates a new EWMA which is equivalent to the UNIX one minute load average and which expects to be ticked every 5 seconds.
- onGaugeAdded(MetricName, Gauge<?>) - Method in interface org.xbib.metrics.common.MetricRegistry.Listener
-
Called when a
Gaugeis added to the registry. - onGaugeRemoved(MetricName) - Method in interface org.xbib.metrics.common.MetricRegistry.Listener
-
Called when a
Gaugeis removed from the registry. - onHistogramAdded(MetricName, Histogram) - Method in interface org.xbib.metrics.common.MetricRegistry.Listener
-
Called when a
Histogramis added to the registry. - onHistogramRemoved(MetricName) - Method in interface org.xbib.metrics.common.MetricRegistry.Listener
-
Called when a
Histogramis removed from the registry. - onMeterAdded(MetricName, Meter) - Method in interface org.xbib.metrics.common.MetricRegistry.Listener
-
Called when a
Meteris added to the registry. - onMeterRemoved(MetricName) - Method in interface org.xbib.metrics.common.MetricRegistry.Listener
-
Called when a
Meteris removed from the registry. - onTimerAdded(MetricName, Sampler) - Method in interface org.xbib.metrics.common.MetricRegistry.Listener
-
Called when a
Sampleris added to the registry. - onTimerRemoved(MetricName) - Method in interface org.xbib.metrics.common.MetricRegistry.Listener
-
Called when a
Sampleris removed from the registry. - org.xbib.metrics.common - package org.xbib.metrics.common
-
Implementation classes for metrics.
R
- register(String, T) - Method in class org.xbib.metrics.common.MetricRegistry
- register(MetricName, T) - Method in class org.xbib.metrics.common.MetricRegistry
-
Given a
Metric, registers it under the given name. - registerAll(MetricSet) - Method in class org.xbib.metrics.common.MetricRegistry
-
Given a metric set, registers them.
- remove(MetricName) - Method in class org.xbib.metrics.common.MetricRegistry
-
Removes the metric with the given name.
- removeListener(MetricRegistry.Listener) - Method in class org.xbib.metrics.common.MetricRegistry
-
Removes a
MetricRegistry.Listenerfrom this registry's collection of listeners. - removeMatching(MetricFilter) - Method in class org.xbib.metrics.common.MetricRegistry
-
Removes all metrics which match the given filter.
S
- Sampler - Class in org.xbib.metrics.common
-
A sampler metric which aggregates timing durations and provides duration statistics, plus throughput statistics via
Meter. - Sampler(ScheduledExecutorService) - Constructor for class org.xbib.metrics.common.Sampler
- Sampler(Reservoir, ScheduledExecutorService) - Constructor for class org.xbib.metrics.common.Sampler
-
Creates a new
Samplerthat uses the givenReservoir. - Sampler(Reservoir, Clock, ScheduledExecutorService) - Constructor for class org.xbib.metrics.common.Sampler
- Sampler.Context - Class in org.xbib.metrics.common
-
A timing context.
- shutdown() - Method in class org.xbib.metrics.common.Meter
- size() - Method in class org.xbib.metrics.common.ExponentiallyDecayingReservoir
- size() - Method in class org.xbib.metrics.common.WeightedSnapshot
-
Returns the number of values in the snapshot.
- start(long) - Method in class org.xbib.metrics.common.Meter
- stop() - Method in class org.xbib.metrics.common.Meter
- stop() - Method in class org.xbib.metrics.common.Sampler.Context
-
Updates the sampler with the difference between current and start time.
T
- tick() - Method in class org.xbib.metrics.common.ExpWeightedMovingAverage
-
Mark the passage of time and decay the current rate accordingly.
- time() - Method in class org.xbib.metrics.common.Sampler
-
Returns a new
Sampler.Context. - time(Runnable) - Method in class org.xbib.metrics.common.Sampler
-
Times and records the duration of an event.
- time(Callable<T>) - Method in class org.xbib.metrics.common.Sampler
-
Records the duration of event.
- timer(String) - Method in class org.xbib.metrics.common.MetricRegistry
- timer(MetricName) - Method in class org.xbib.metrics.common.MetricRegistry
U
- update(long) - Method in class org.xbib.metrics.common.ExponentiallyDecayingReservoir
- update(long) - Method in class org.xbib.metrics.common.ExpWeightedMovingAverage
-
Update the moving average with a new value.
- update(long, long) - Method in class org.xbib.metrics.common.ExponentiallyDecayingReservoir
-
Adds an old value with a fixed timestamp to the reservoir.
- update(long, TimeUnit) - Method in class org.xbib.metrics.common.Sampler
-
Adds a recorded duration.
V
- value - Variable in class org.xbib.metrics.common.WeightedSnapshot.WeightedSample
W
- weight - Variable in class org.xbib.metrics.common.WeightedSnapshot.WeightedSample
- WeightedSample(long, double) - Constructor for class org.xbib.metrics.common.WeightedSnapshot.WeightedSample
- WeightedSnapshot - Class in org.xbib.metrics.common
-
A statistical snapshot of a
WeightedSnapshot. - WeightedSnapshot(Collection<WeightedSnapshot.WeightedSample>) - Constructor for class org.xbib.metrics.common.WeightedSnapshot
-
Create a new
Snapshotwith the given values. - WeightedSnapshot.WeightedSample - Class in org.xbib.metrics.common
-
A single sample item with value and its weights for
WeightedSnapshot.
All Classes All Packages