A B C D E F G H I L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- add(String, MetricRegistry) - Static method in class com.codahale.metrics.SharedMetricRegistries
- addListener(MetricRegistryListener) - Method in class com.codahale.metrics.MetricRegistry
-
Adds a
MetricRegistryListener
to a collection of listeners that will be notified on metric creation. - addListener(MetricRegistryListener) - Method in class com.codahale.metrics.NoopMetricRegistry
-
Adds a
MetricRegistryListener
to a collection of listeners that will be notified on metric creation. - ALL - Static variable in interface com.codahale.metrics.MetricFilter
-
Matches all metrics, regardless of type or name.
- alpha(double) - Method in class com.codahale.metrics.LockFreeExponentiallyDecayingReservoir.Builder
-
Alpha is the exponential decay factor.
- awaitTermination(long, TimeUnit) - Method in class com.codahale.metrics.InstrumentedExecutorService
- awaitTermination(long, TimeUnit) - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
B
- Base() - Constructor for class com.codahale.metrics.MetricRegistryListener.Base
- build() - Method in class com.codahale.metrics.ConsoleReporter.Builder
-
Builds a
ConsoleReporter
with the given properties. - build() - Method in class com.codahale.metrics.LockFreeExponentiallyDecayingReservoir.Builder
- build() - Method in class com.codahale.metrics.Slf4jReporter.Builder
-
Builds a
Slf4jReporter
with the given properties. - build(File) - Method in class com.codahale.metrics.CsvReporter.Builder
-
Builds a
CsvReporter
with the given properties, writing.csv
files to the given directory. - builder() - Static method in class com.codahale.metrics.LockFreeExponentiallyDecayingReservoir
- buildMap() - Method in class com.codahale.metrics.MetricRegistry
-
Creates a new
ConcurrentMap
implementation for use inside the registry. - buildMap() - Method in class com.codahale.metrics.NoopMetricRegistry
-
Creates a new
ConcurrentMap
implementation for use inside the registry.
C
- CachedGauge<T> - Class in com.codahale.metrics
-
A
Gauge
implementation which caches its value for a period of time. - CachedGauge(long, TimeUnit) - Constructor for class com.codahale.metrics.CachedGauge
-
Creates a new cached gauge with the given timeout period.
- CachedGauge(Clock, long, TimeUnit) - Constructor for class com.codahale.metrics.CachedGauge
-
Creates a new cached gauge with the given clock and timeout period.
- clear() - Static method in class com.codahale.metrics.SharedMetricRegistries
- clock(Clock) - Method in class com.codahale.metrics.LockFreeExponentiallyDecayingReservoir.Builder
-
Clock instance used for decay.
- Clock - Class in com.codahale.metrics
-
An abstraction for how time passes.
- Clock() - Constructor for class com.codahale.metrics.Clock
- Clock.UserTimeClock - Class in com.codahale.metrics
-
A clock implementation which returns the current time in epoch nanoseconds.
- close() - Method in class com.codahale.metrics.ScheduledReporter
-
Stops the reporter and shuts down its thread of execution.
- close() - Method in class com.codahale.metrics.Timer.Context
-
Equivalent to calling
Timer.Context.stop()
. - com.codahale.metrics - package com.codahale.metrics
- ConsoleReporter - Class in com.codahale.metrics
-
A reporter which outputs measurements to a
PrintStream
, likeSystem.out
. - ConsoleReporter.Builder - Class in com.codahale.metrics
-
A builder for
ConsoleReporter
instances. - contains(String) - Static method in interface com.codahale.metrics.MetricFilter
- convertDuration(double) - Method in class com.codahale.metrics.ScheduledReporter
- convertDurationsTo(TimeUnit) - Method in class com.codahale.metrics.ConsoleReporter.Builder
-
Convert durations to the given time unit.
- convertDurationsTo(TimeUnit) - Method in class com.codahale.metrics.CsvReporter.Builder
-
Convert durations to the given time unit.
- convertDurationsTo(TimeUnit) - Method in class com.codahale.metrics.Slf4jReporter.Builder
-
Convert durations to the given time unit.
- convertRate(double) - Method in class com.codahale.metrics.ScheduledReporter
- convertRatesTo(TimeUnit) - Method in class com.codahale.metrics.ConsoleReporter.Builder
-
Convert rates to the given time unit.
- convertRatesTo(TimeUnit) - Method in class com.codahale.metrics.CsvReporter.Builder
-
Convert rates to the given time unit.
- convertRatesTo(TimeUnit) - Method in class com.codahale.metrics.Slf4jReporter.Builder
-
Convert rates to the given time unit.
- COUNT - com.codahale.metrics.MetricAttribute
- counter(String) - Method in class com.codahale.metrics.MetricRegistry
- counter(String) - Method in class com.codahale.metrics.NoopMetricRegistry
- counter(String, MetricRegistry.MetricSupplier<Counter>) - Method in class com.codahale.metrics.MetricRegistry
- counter(String, MetricRegistry.MetricSupplier<Counter>) - Method in class com.codahale.metrics.NoopMetricRegistry
- Counter - Class in com.codahale.metrics
-
An incrementing and decrementing counter metric.
- Counter() - Constructor for class com.codahale.metrics.Counter
- Counting - Interface in com.codahale.metrics
-
An interface for metric types which have counts.
- CsvFileProvider - Interface in com.codahale.metrics
-
This interface allows a pluggable implementation of what file names the
CsvReporter
will write to. - CsvReporter - Class in com.codahale.metrics
-
A reporter which creates a comma-separated values file of the measurements for each metric.
- CsvReporter.Builder - Class in com.codahale.metrics
-
A builder for
CsvReporter
instances.
D
- DEBUG - com.codahale.metrics.Slf4jReporter.LoggingLevel
- dec() - Method in class com.codahale.metrics.Counter
-
Decrement the counter by one.
- dec(long) - Method in class com.codahale.metrics.Counter
-
Decrement the counter by
n
. - defaultClock() - Static method in class com.codahale.metrics.Clock
-
The default clock to use.
- DefaultSettableGauge<T> - Class in com.codahale.metrics
-
Similar to
Gauge
, but metric value is updated via calling#setValue(T)
instead. - DefaultSettableGauge() - Constructor for class com.codahale.metrics.DefaultSettableGauge
-
Create an instance with no default value.
- DefaultSettableGauge(T) - Constructor for class com.codahale.metrics.DefaultSettableGauge
-
Create an instance with a default value.
- DerivativeGauge<F,T> - Class in com.codahale.metrics
-
A gauge whose value is derived from the value of another gauge.
- DerivativeGauge(Gauge<F>) - Constructor for class com.codahale.metrics.DerivativeGauge
-
Creates a new derivative with the given base gauge.
- disabledMetricAttributes(Set<MetricAttribute>) - Method in class com.codahale.metrics.ConsoleReporter.Builder
-
Don't report the passed metric attributes for all metrics (e.g.
- disabledMetricAttributes(Set<MetricAttribute>) - Method in class com.codahale.metrics.Slf4jReporter.Builder
-
Don't report the passed metric attributes for all metrics (e.g.
- dump(OutputStream) - Method in class com.codahale.metrics.Snapshot
-
Writes the values of the snapshot to the given stream.
- dump(OutputStream) - Method in class com.codahale.metrics.UniformSnapshot
-
Writes the values of the snapshot to the given stream.
- dump(OutputStream) - Method in class com.codahale.metrics.WeightedSnapshot
-
Writes the values of the snapshot to the given stream.
E
- endsWith(String) - Static method in interface com.codahale.metrics.MetricFilter
- ERROR - com.codahale.metrics.Slf4jReporter.LoggingLevel
- EWMA - Class in com.codahale.metrics
-
An exponentially-weighted moving average.
- EWMA(double, long, TimeUnit) - Constructor for class com.codahale.metrics.EWMA
-
Create a new EWMA with a specific smoothing constant.
- execute(Runnable) - Method in class com.codahale.metrics.InstrumentedExecutorService
- execute(Runnable) - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
- ExponentiallyDecayingReservoir - Class in com.codahale.metrics
-
An exponentially-decaying random reservoir of
long
s. - ExponentiallyDecayingReservoir() - Constructor for class com.codahale.metrics.ExponentiallyDecayingReservoir
-
Creates a new
ExponentiallyDecayingReservoir
of 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 com.codahale.metrics.ExponentiallyDecayingReservoir
-
Creates a new
ExponentiallyDecayingReservoir
. - ExponentiallyDecayingReservoir(int, double, Clock) - Constructor for class com.codahale.metrics.ExponentiallyDecayingReservoir
-
Creates a new
ExponentiallyDecayingReservoir
. - ExponentialMovingAverages - Class in com.codahale.metrics
-
A triple (one, five and fifteen minutes) of exponentially-weighted moving average rates as needed by
Meter
. - ExponentialMovingAverages() - Constructor for class com.codahale.metrics.ExponentialMovingAverages
-
Creates a new
ExponentialMovingAverages
. - ExponentialMovingAverages(Clock) - Constructor for class com.codahale.metrics.ExponentialMovingAverages
-
Creates a new
ExponentialMovingAverages
.
F
- fifteenMinuteEWMA() - Static method in class com.codahale.metrics.EWMA
-
Creates a new EWMA which is equivalent to the UNIX fifteen minute load average and which expects to be ticked every 5 seconds.
- filter(MetricFilter) - Method in class com.codahale.metrics.ConsoleReporter.Builder
-
Only report metrics which match the given filter.
- filter(MetricFilter) - Method in class com.codahale.metrics.CsvReporter.Builder
-
Only report metrics which match the given filter.
- filter(MetricFilter) - Method in class com.codahale.metrics.Slf4jReporter.Builder
-
Only report metrics which match the given filter.
- fiveMinuteEWMA() - Static method in class com.codahale.metrics.EWMA
-
Creates a new EWMA which is equivalent to the UNIX five minute load average and which expects to be ticked every 5 seconds.
- FixedNameCsvFileProvider - Class in com.codahale.metrics
-
This implementation of the
CsvFileProvider
will always return the same name for the same metric. - FixedNameCsvFileProvider() - Constructor for class com.codahale.metrics.FixedNameCsvFileProvider
- formatFor(Locale) - Method in class com.codahale.metrics.CsvReporter.Builder
-
Format numbers for the given
Locale
. - formattedFor(Locale) - Method in class com.codahale.metrics.ConsoleReporter.Builder
-
Format numbers for the given
Locale
. - formattedFor(TimeZone) - Method in class com.codahale.metrics.ConsoleReporter.Builder
-
Use the given
TimeZone
for the time. - forRegistry(MetricRegistry) - Static method in class com.codahale.metrics.ConsoleReporter
-
Returns a new
ConsoleReporter.Builder
forConsoleReporter
. - forRegistry(MetricRegistry) - Static method in class com.codahale.metrics.CsvReporter
-
Returns a new
CsvReporter.Builder
forCsvReporter
. - forRegistry(MetricRegistry) - Static method in class com.codahale.metrics.Slf4jReporter
-
Returns a new
Slf4jReporter.Builder
forSlf4jReporter
.
G
- gauge(String) - Method in class com.codahale.metrics.MetricRegistry
-
Return the
Gauge
registered under this name; or create and register a newSettableGauge
if none is registered. - gauge(String) - Method in class com.codahale.metrics.NoopMetricRegistry
-
Return the
Gauge
registered under this name; or create and register a newSettableGauge
if none is registered. - gauge(String, MetricRegistry.MetricSupplier<T>) - Method in class com.codahale.metrics.MetricRegistry
- gauge(String, MetricRegistry.MetricSupplier<T>) - Method in class com.codahale.metrics.NoopMetricRegistry
- Gauge<T> - Interface in com.codahale.metrics
-
A gauge metric is an instantaneous reading of a particular value.
- get75thPercentile() - Method in class com.codahale.metrics.Snapshot
-
Returns the value at the 75th percentile in the distribution.
- get95thPercentile() - Method in class com.codahale.metrics.Snapshot
-
Returns the value at the 95th percentile in the distribution.
- get98thPercentile() - Method in class com.codahale.metrics.Snapshot
-
Returns the value at the 98th percentile in the distribution.
- get999thPercentile() - Method in class com.codahale.metrics.Snapshot
-
Returns the value at the 99.9th percentile in the distribution.
- get99thPercentile() - Method in class com.codahale.metrics.Snapshot
-
Returns the value at the 99th percentile in the distribution.
- getCode() - Method in enum com.codahale.metrics.MetricAttribute
- getCount() - Method in class com.codahale.metrics.Counter
-
Returns the counter's current value.
- getCount() - Method in interface com.codahale.metrics.Counting
-
Returns the current count.
- getCount() - Method in class com.codahale.metrics.Histogram
-
Returns the number of values recorded.
- getCount() - Method in class com.codahale.metrics.Meter
- getCount() - Method in interface com.codahale.metrics.Metered
-
Returns the number of events which have been marked.
- getCount() - Method in class com.codahale.metrics.Timer
- getCounters() - Method in class com.codahale.metrics.MetricRegistry
-
Returns a map of all the counters in the registry and their names.
- getCounters() - Method in class com.codahale.metrics.NoopMetricRegistry
-
Returns a map of all the counters in the registry and their names.
- getCounters(MetricFilter) - Method in class com.codahale.metrics.MetricRegistry
-
Returns a map of all the counters in the registry and their names which match the given filter.
- getCounters(MetricFilter) - Method in class com.codahale.metrics.NoopMetricRegistry
-
Returns a map of all the counters in the registry and their names which match the given filter.
- getDefault() - Static method in class com.codahale.metrics.SharedMetricRegistries
-
Gets the name of the default registry, if it has been set
- getDisabledMetricAttributes() - Method in class com.codahale.metrics.ScheduledReporter
- getDurationUnit() - Method in class com.codahale.metrics.ScheduledReporter
- getFifteenMinuteRate() - Method in class com.codahale.metrics.Meter
- getFifteenMinuteRate() - Method in interface com.codahale.metrics.Metered
-
Returns the fifteen-minute moving average rate at which events have occurred since the meter was created.
- getFifteenMinuteRate() - Method in class com.codahale.metrics.Timer
- getFile(File, String) - Method in interface com.codahale.metrics.CsvFileProvider
- getFile(File, String) - Method in class com.codahale.metrics.FixedNameCsvFileProvider
- getFiveMinuteRate() - Method in class com.codahale.metrics.Meter
- getFiveMinuteRate() - Method in interface com.codahale.metrics.Metered
-
Returns the five-minute moving average rate at which events have occurred since the meter was created.
- getFiveMinuteRate() - Method in class com.codahale.metrics.Timer
- getGauges() - Method in class com.codahale.metrics.MetricRegistry
-
Returns a map of all the gauges in the registry and their names.
- getGauges() - Method in class com.codahale.metrics.NoopMetricRegistry
-
Returns a map of all the gauges in the registry and their names.
- getGauges(MetricFilter) - Method in class com.codahale.metrics.MetricRegistry
-
Returns a map of all the gauges in the registry and their names which match the given filter.
- getGauges(MetricFilter) - Method in class com.codahale.metrics.NoopMetricRegistry
-
Returns a map of all the gauges in the registry and their names which match the given filter.
- getHistograms() - Method in class com.codahale.metrics.MetricRegistry
-
Returns a map of all the histograms in the registry and their names.
- getHistograms() - Method in class com.codahale.metrics.NoopMetricRegistry
-
Returns a map of all the histograms in the registry and their names.
- getHistograms(MetricFilter) - Method in class com.codahale.metrics.MetricRegistry
-
Returns a map of all the histograms in the registry and their names which match the given filter.
- getHistograms(MetricFilter) - Method in class com.codahale.metrics.NoopMetricRegistry
-
Returns a map of all the histograms in the registry and their names which match the given filter.
- getM15Rate() - Method in class com.codahale.metrics.ExponentialMovingAverages
- getM15Rate() - Method in interface com.codahale.metrics.MovingAverages
-
Returns the fifteen-minute moving average rate
- getM15Rate() - Method in class com.codahale.metrics.SlidingTimeWindowMovingAverages
- getM1Rate() - Method in class com.codahale.metrics.ExponentialMovingAverages
- getM1Rate() - Method in interface com.codahale.metrics.MovingAverages
-
Returns the one-minute moving average rate
- getM1Rate() - Method in class com.codahale.metrics.SlidingTimeWindowMovingAverages
- getM5Rate() - Method in class com.codahale.metrics.ExponentialMovingAverages
- getM5Rate() - Method in interface com.codahale.metrics.MovingAverages
-
Returns the five-minute moving average rate
- getM5Rate() - Method in class com.codahale.metrics.SlidingTimeWindowMovingAverages
- getMax() - Method in class com.codahale.metrics.Snapshot
-
Returns the highest value in the snapshot.
- getMax() - Method in class com.codahale.metrics.UniformSnapshot
-
Returns the highest value in the snapshot.
- getMax() - Method in class com.codahale.metrics.WeightedSnapshot
-
Returns the highest value in the snapshot.
- getMean() - Method in class com.codahale.metrics.Snapshot
-
Returns the arithmetic mean of the values in the snapshot.
- getMean() - Method in class com.codahale.metrics.UniformSnapshot
-
Returns the arithmetic mean of the values in the snapshot.
- getMean() - Method in class com.codahale.metrics.WeightedSnapshot
-
Returns the weighted arithmetic mean of the values in the snapshot.
- getMeanRate() - Method in class com.codahale.metrics.Meter
- getMeanRate() - Method in interface com.codahale.metrics.Metered
-
Returns the mean rate at which events have occurred since the meter was created.
- getMeanRate() - Method in class com.codahale.metrics.Timer
- getMedian() - Method in class com.codahale.metrics.Snapshot
-
Returns the median value in the distribution.
- getMeters() - Method in class com.codahale.metrics.MetricRegistry
-
Returns a map of all the meters in the registry and their names.
- getMeters() - Method in class com.codahale.metrics.NoopMetricRegistry
-
Returns a map of all the meters in the registry and their names.
- getMeters(MetricFilter) - Method in class com.codahale.metrics.MetricRegistry
-
Returns a map of all the meters in the registry and their names which match the given filter.
- getMeters(MetricFilter) - Method in class com.codahale.metrics.NoopMetricRegistry
-
Returns a map of all the meters in the registry and their names which match the given filter.
- getMetrics() - Method in class com.codahale.metrics.MetricRegistry
- getMetrics() - Method in interface com.codahale.metrics.MetricSet
-
A map of metric names to metrics.
- getMetrics() - Method in class com.codahale.metrics.NoopMetricRegistry
-
A map of metric names to metrics.
- getMin() - Method in class com.codahale.metrics.Snapshot
-
Returns the lowest value in the snapshot.
- getMin() - Method in class com.codahale.metrics.UniformSnapshot
-
Returns the lowest value in the snapshot.
- getMin() - Method in class com.codahale.metrics.WeightedSnapshot
-
Returns the lowest value in the snapshot.
- getNames() - Method in class com.codahale.metrics.MetricRegistry
-
Returns a set of the names of all the metrics in the registry.
- getNames() - Method in class com.codahale.metrics.NoopMetricRegistry
-
Returns a set of the names of all the metrics in the registry.
- getOneMinuteRate() - Method in class com.codahale.metrics.Meter
- getOneMinuteRate() - Method in interface com.codahale.metrics.Metered
-
Returns the one-minute moving average rate at which events have occurred since the meter was created.
- getOneMinuteRate() - Method in class com.codahale.metrics.Timer
- getOrCreate(String) - Static method in class com.codahale.metrics.SharedMetricRegistries
- getRate(TimeUnit) - Method in class com.codahale.metrics.EWMA
-
Returns the rate in the given units of time.
- getRateUnit() - Method in class com.codahale.metrics.ScheduledReporter
- getRateUnit() - Method in class com.codahale.metrics.Slf4jReporter
- getRatio() - Method in class com.codahale.metrics.RatioGauge
-
Returns the
RatioGauge.Ratio
which is the gauge's current value. - getSnapshot() - Method in class com.codahale.metrics.ExponentiallyDecayingReservoir
- getSnapshot() - Method in class com.codahale.metrics.Histogram
- getSnapshot() - Method in class com.codahale.metrics.LockFreeExponentiallyDecayingReservoir
- getSnapshot() - Method in interface com.codahale.metrics.Reservoir
-
Returns a snapshot of the reservoir's values.
- getSnapshot() - Method in interface com.codahale.metrics.Sampling
-
Returns a snapshot of the values.
- getSnapshot() - Method in class com.codahale.metrics.SlidingTimeWindowArrayReservoir
- getSnapshot() - Method in class com.codahale.metrics.SlidingTimeWindowReservoir
- getSnapshot() - Method in class com.codahale.metrics.SlidingWindowReservoir
- getSnapshot() - Method in class com.codahale.metrics.Timer
- getSnapshot() - Method in class com.codahale.metrics.UniformReservoir
- getStdDev() - Method in class com.codahale.metrics.Snapshot
-
Returns the standard deviation of the values in the snapshot.
- getStdDev() - Method in class com.codahale.metrics.UniformSnapshot
-
Returns the standard deviation of the values in the snapshot.
- getStdDev() - Method in class com.codahale.metrics.WeightedSnapshot
-
Returns the weighted standard deviation of the values in the snapshot.
- getTick() - Method in class com.codahale.metrics.Clock
-
Returns the current time tick.
- getTick() - Method in class com.codahale.metrics.Clock.UserTimeClock
- getTime() - Method in class com.codahale.metrics.Clock
-
Returns the current time in milliseconds.
- getTimers() - Method in class com.codahale.metrics.MetricRegistry
-
Returns a map of all the timers in the registry and their names.
- getTimers() - Method in class com.codahale.metrics.NoopMetricRegistry
-
Returns a map of all the timers in the registry and their names.
- getTimers(MetricFilter) - Method in class com.codahale.metrics.MetricRegistry
-
Returns a map of all the timers in the registry and their names which match the given filter.
- getTimers(MetricFilter) - Method in class com.codahale.metrics.NoopMetricRegistry
-
Returns a map of all the timers in the registry and their names which match the given filter.
- getValue() - Method in class com.codahale.metrics.CachedGauge
- getValue() - Method in class com.codahale.metrics.DefaultSettableGauge
-
Returns the current value.
- getValue() - Method in class com.codahale.metrics.DerivativeGauge
- getValue() - Method in interface com.codahale.metrics.Gauge
-
Returns the metric's current value.
- getValue() - Method in class com.codahale.metrics.RatioGauge
- getValue() - Method in class com.codahale.metrics.RatioGauge.Ratio
-
Returns the ratio, which is either a
double
between 0 and 1 (inclusive) orNaN
. - getValue(double) - Method in class com.codahale.metrics.Snapshot
-
Returns the value at the given quantile.
- getValue(double) - Method in class com.codahale.metrics.UniformSnapshot
-
Returns the value at the given quantile.
- getValue(double) - Method in class com.codahale.metrics.WeightedSnapshot
-
Returns the value at the given quantile.
- getValues() - Method in class com.codahale.metrics.Snapshot
-
Returns the entire set of values in the snapshot.
- getValues() - Method in class com.codahale.metrics.UniformSnapshot
-
Returns the entire set of values in the snapshot.
- getValues() - Method in class com.codahale.metrics.WeightedSnapshot
-
Returns the entire set of values in the snapshot.
H
- histogram(String) - Method in class com.codahale.metrics.MetricRegistry
- histogram(String) - Method in class com.codahale.metrics.NoopMetricRegistry
- histogram(String, MetricRegistry.MetricSupplier<Histogram>) - Method in class com.codahale.metrics.MetricRegistry
- histogram(String, MetricRegistry.MetricSupplier<Histogram>) - Method in class com.codahale.metrics.NoopMetricRegistry
- Histogram - Class in com.codahale.metrics
-
A metric which calculates the distribution of a value.
- Histogram(Reservoir) - Constructor for class com.codahale.metrics.Histogram
-
Creates a new
Histogram
with the given reservoir.
I
- inc() - Method in class com.codahale.metrics.Counter
-
Increment the counter by one.
- inc(long) - Method in class com.codahale.metrics.Counter
-
Increment the counter by
n
. - INFO - com.codahale.metrics.Slf4jReporter.LoggingLevel
- InstrumentedExecutorService - Class in com.codahale.metrics
-
An
ExecutorService
that monitors the number of tasks submitted, running, completed and also keeps aTimer
for the task duration. - InstrumentedExecutorService(ExecutorService, MetricRegistry) - Constructor for class com.codahale.metrics.InstrumentedExecutorService
-
Wraps an
ExecutorService
uses an auto-generated default name. - InstrumentedExecutorService(ExecutorService, MetricRegistry, String) - Constructor for class com.codahale.metrics.InstrumentedExecutorService
-
Wraps an
ExecutorService
with an explicit name. - InstrumentedScheduledExecutorService - Class in com.codahale.metrics
-
An
ScheduledExecutorService
that monitors the number of tasks submitted, running, completed and also keeps aTimer
for the task duration. - InstrumentedScheduledExecutorService(ScheduledExecutorService, MetricRegistry) - Constructor for class com.codahale.metrics.InstrumentedScheduledExecutorService
-
Wraps an
ScheduledExecutorService
uses an auto-generated default name. - InstrumentedScheduledExecutorService(ScheduledExecutorService, MetricRegistry, String) - Constructor for class com.codahale.metrics.InstrumentedScheduledExecutorService
-
Wraps an
ScheduledExecutorService
with an explicit name. - InstrumentedThreadFactory - Class in com.codahale.metrics
-
A
ThreadFactory
that monitors the number of threads created, running and terminated. - InstrumentedThreadFactory(ThreadFactory, MetricRegistry) - Constructor for class com.codahale.metrics.InstrumentedThreadFactory
-
Wraps a
ThreadFactory
, uses a default auto-generated name. - InstrumentedThreadFactory(ThreadFactory, MetricRegistry, String) - Constructor for class com.codahale.metrics.InstrumentedThreadFactory
-
Wraps a
ThreadFactory
with an explicit name. - invokeAll(Collection<? extends Callable<T>>) - Method in class com.codahale.metrics.InstrumentedExecutorService
- invokeAll(Collection<? extends Callable<T>>) - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
- invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class com.codahale.metrics.InstrumentedExecutorService
- invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
- invokeAny(Collection<? extends Callable<T>>) - Method in class com.codahale.metrics.InstrumentedExecutorService
- invokeAny(Collection<? extends Callable<T>>) - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
- invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class com.codahale.metrics.InstrumentedExecutorService
- invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
- isShutdown() - Method in class com.codahale.metrics.InstrumentedExecutorService
- isShutdown() - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
- isShutdownExecutorOnStop() - Method in class com.codahale.metrics.ScheduledReporter
- isTerminated() - Method in class com.codahale.metrics.InstrumentedExecutorService
- isTerminated() - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
L
- loadValue() - Method in class com.codahale.metrics.CachedGauge
-
Loads the value and returns it.
- LockFreeExponentiallyDecayingReservoir - Class in com.codahale.metrics
-
A lock-free exponentially-decaying random reservoir of
long
s. - LockFreeExponentiallyDecayingReservoir.Builder - Class in com.codahale.metrics
-
By default this uses a size of 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.
M
- M1_RATE - com.codahale.metrics.MetricAttribute
- M15_RATE - com.codahale.metrics.MetricAttribute
- M5_RATE - com.codahale.metrics.MetricAttribute
- mark() - Method in class com.codahale.metrics.Meter
-
Mark the occurrence of an event.
- mark(long) - Method in class com.codahale.metrics.Meter
-
Mark the occurrence of a given number of events.
- markWith(Marker) - Method in class com.codahale.metrics.Slf4jReporter.Builder
-
Mark all logged metrics with the given marker.
- matches(String, Metric) - Method in interface com.codahale.metrics.MetricFilter
-
Returns
true
if the metric matches the filter;false
otherwise. - MAX - com.codahale.metrics.MetricAttribute
- MEAN - com.codahale.metrics.MetricAttribute
- MEAN_RATE - com.codahale.metrics.MetricAttribute
- meter(String) - Method in class com.codahale.metrics.MetricRegistry
- meter(String) - Method in class com.codahale.metrics.NoopMetricRegistry
- meter(String, MetricRegistry.MetricSupplier<Meter>) - Method in class com.codahale.metrics.MetricRegistry
- meter(String, MetricRegistry.MetricSupplier<Meter>) - Method in class com.codahale.metrics.NoopMetricRegistry
- Meter - Class in com.codahale.metrics
-
A meter metric which measures mean throughput and one-, five-, and fifteen-minute moving average throughputs.
- Meter() - Constructor for class com.codahale.metrics.Meter
-
Creates a new
Meter
. - Meter(Clock) - Constructor for class com.codahale.metrics.Meter
-
Creates a new
Meter
. - Meter(MovingAverages) - Constructor for class com.codahale.metrics.Meter
-
Creates a new
Meter
. - Meter(MovingAverages, Clock) - Constructor for class com.codahale.metrics.Meter
-
Creates a new
Meter
. - Metered - Interface in com.codahale.metrics
-
An object which maintains mean and moving average rates.
- Metric - Interface in com.codahale.metrics
-
A tag interface to indicate that a class is a metric.
- MetricAttribute - Enum in com.codahale.metrics
-
Represents attributes of metrics which can be reported.
- MetricFilter - Interface in com.codahale.metrics
-
A filter used to determine whether or not a metric should be reported, among other things.
- MetricRegistry - Class in com.codahale.metrics
-
A registry of metric instances.
- MetricRegistry() - Constructor for class com.codahale.metrics.MetricRegistry
-
Creates a new
MetricRegistry
. - MetricRegistry.MetricSupplier<T extends Metric> - Interface in com.codahale.metrics
- MetricRegistryListener - Interface in com.codahale.metrics
-
Listeners for events from the registry.
- MetricRegistryListener.Base - Class in com.codahale.metrics
-
A no-op implementation of
MetricRegistryListener
. - MetricSet - Interface in com.codahale.metrics
-
A set of named metrics.
- MIN - com.codahale.metrics.MetricAttribute
- MovingAverages - Interface in com.codahale.metrics
-
A triple of moving averages (one-, five-, and fifteen-minute moving average) as needed by
Meter
.
N
- name(Class<?>, String...) - Static method in class com.codahale.metrics.MetricRegistry
-
Concatenates a class name and elements to form a dotted name, eliding any null values or empty strings.
- name(String, String...) - Static method in class com.codahale.metrics.MetricRegistry
-
Concatenates elements to form a dotted name, eliding any null values or empty strings.
- names() - Static method in class com.codahale.metrics.SharedMetricRegistries
- newMetric() - Method in interface com.codahale.metrics.MetricRegistry.MetricSupplier
- newThread(Runnable) - Method in class com.codahale.metrics.InstrumentedThreadFactory
- NoopMetricRegistry - Class in com.codahale.metrics
-
A registry of metric instances which never creates or registers any metrics and returns no-op implementations of any metric type.
- NoopMetricRegistry() - Constructor for class com.codahale.metrics.NoopMetricRegistry
O
- of(double, double) - Static method in class com.codahale.metrics.RatioGauge.Ratio
-
Creates a new ratio with the given numerator and denominator.
- onCounterAdded(String, Counter) - Method in class com.codahale.metrics.MetricRegistryListener.Base
- onCounterAdded(String, Counter) - Method in interface com.codahale.metrics.MetricRegistryListener
-
Called when a
Counter
is added to the registry. - onCounterRemoved(String) - Method in class com.codahale.metrics.MetricRegistryListener.Base
- onCounterRemoved(String) - Method in interface com.codahale.metrics.MetricRegistryListener
-
Called when a
Counter
is removed from the registry. - oneMinuteEWMA() - Static method in class com.codahale.metrics.EWMA
-
Creates a new EWMA which is equivalent to the UNIX one minute load average and which expects to be ticked every 5 seconds.
- onGaugeAdded(String, Gauge<?>) - Method in class com.codahale.metrics.MetricRegistryListener.Base
- onGaugeAdded(String, Gauge<?>) - Method in interface com.codahale.metrics.MetricRegistryListener
-
Called when a
Gauge
is added to the registry. - onGaugeRemoved(String) - Method in class com.codahale.metrics.MetricRegistryListener.Base
- onGaugeRemoved(String) - Method in interface com.codahale.metrics.MetricRegistryListener
-
Called when a
Gauge
is removed from the registry. - onHistogramAdded(String, Histogram) - Method in class com.codahale.metrics.MetricRegistryListener.Base
- onHistogramAdded(String, Histogram) - Method in interface com.codahale.metrics.MetricRegistryListener
-
Called when a
Histogram
is added to the registry. - onHistogramRemoved(String) - Method in class com.codahale.metrics.MetricRegistryListener.Base
- onHistogramRemoved(String) - Method in interface com.codahale.metrics.MetricRegistryListener
-
Called when a
Histogram
is removed from the registry. - onMeterAdded(String, Meter) - Method in class com.codahale.metrics.MetricRegistryListener.Base
- onMeterAdded(String, Meter) - Method in interface com.codahale.metrics.MetricRegistryListener
-
Called when a
Meter
is added to the registry. - onMeterRemoved(String) - Method in class com.codahale.metrics.MetricRegistryListener.Base
- onMeterRemoved(String) - Method in interface com.codahale.metrics.MetricRegistryListener
-
Called when a
Meter
is removed from the registry. - onTimerAdded(String, Timer) - Method in class com.codahale.metrics.MetricRegistryListener.Base
- onTimerAdded(String, Timer) - Method in interface com.codahale.metrics.MetricRegistryListener
-
Called when a
Timer
is added to the registry. - onTimerRemoved(String) - Method in class com.codahale.metrics.MetricRegistryListener.Base
- onTimerRemoved(String) - Method in interface com.codahale.metrics.MetricRegistryListener
-
Called when a
Timer
is removed from the registry. - outputTo(PrintStream) - Method in class com.codahale.metrics.ConsoleReporter.Builder
-
Write to the given
PrintStream
. - outputTo(Logger) - Method in class com.codahale.metrics.Slf4jReporter.Builder
-
Log metrics to the given logger.
P
- P50 - com.codahale.metrics.MetricAttribute
- P75 - com.codahale.metrics.MetricAttribute
- P95 - com.codahale.metrics.MetricAttribute
- P98 - com.codahale.metrics.MetricAttribute
- P99 - com.codahale.metrics.MetricAttribute
- P999 - com.codahale.metrics.MetricAttribute
- prefixedWith(String) - Method in class com.codahale.metrics.Slf4jReporter.Builder
-
Prefix all metric names with the given string.
R
- RatioGauge - Class in com.codahale.metrics
-
A gauge which measures the ratio of one value to another.
- RatioGauge() - Constructor for class com.codahale.metrics.RatioGauge
- RatioGauge.Ratio - Class in com.codahale.metrics
-
A ratio of one quantity to another.
- register(String, T) - Method in class com.codahale.metrics.MetricRegistry
-
Given a
Metric
, registers it under the given name. - register(String, T) - Method in class com.codahale.metrics.NoopMetricRegistry
-
Given a
Metric
, registers it under the given name. - registerAll(MetricSet) - Method in class com.codahale.metrics.MetricRegistry
-
Given a metric set, registers them.
- registerAll(MetricSet) - Method in class com.codahale.metrics.NoopMetricRegistry
-
Given a metric set, registers them.
- registerAll(String, MetricSet) - Method in class com.codahale.metrics.MetricRegistry
-
Given a metric set, registers them with the given prefix prepended to their names.
- registerAll(String, MetricSet) - Method in class com.codahale.metrics.NoopMetricRegistry
-
Given a metric set, registers them with the given prefix prepended to their names.
- remove(String) - Method in class com.codahale.metrics.MetricRegistry
-
Removes the metric with the given name.
- remove(String) - Method in class com.codahale.metrics.NoopMetricRegistry
-
Removes the metric with the given name.
- remove(String) - Static method in class com.codahale.metrics.SharedMetricRegistries
- removeListener(MetricRegistryListener) - Method in class com.codahale.metrics.MetricRegistry
-
Removes a
MetricRegistryListener
from this registry's collection of listeners. - removeListener(MetricRegistryListener) - Method in class com.codahale.metrics.NoopMetricRegistry
-
Removes a
MetricRegistryListener
from this registry's collection of listeners. - removeMatching(MetricFilter) - Method in class com.codahale.metrics.MetricRegistry
-
Removes all metrics which match the given filter.
- removeMatching(MetricFilter) - Method in class com.codahale.metrics.NoopMetricRegistry
-
Removes all metrics which match the given filter.
- report() - Method in class com.codahale.metrics.ScheduledReporter
-
Report the current values of all metrics in the registry.
- report(SortedMap<String, Gauge>, SortedMap<String, Counter>, SortedMap<String, Histogram>, SortedMap<String, Meter>, SortedMap<String, Timer>) - Method in class com.codahale.metrics.ConsoleReporter
- report(SortedMap<String, Gauge>, SortedMap<String, Counter>, SortedMap<String, Histogram>, SortedMap<String, Meter>, SortedMap<String, Timer>) - Method in class com.codahale.metrics.CsvReporter
- report(SortedMap<String, Gauge>, SortedMap<String, Counter>, SortedMap<String, Histogram>, SortedMap<String, Meter>, SortedMap<String, Timer>) - Method in class com.codahale.metrics.ScheduledReporter
-
Called periodically by the polling thread.
- report(SortedMap<String, Gauge>, SortedMap<String, Counter>, SortedMap<String, Histogram>, SortedMap<String, Meter>, SortedMap<String, Timer>) - Method in class com.codahale.metrics.Slf4jReporter
- Reporter - Interface in com.codahale.metrics
- rescaleThreshold(Duration) - Method in class com.codahale.metrics.LockFreeExponentiallyDecayingReservoir.Builder
-
Interval at which this reservoir is rescaled.
- Reservoir - Interface in com.codahale.metrics
-
A statistically representative reservoir of a data stream.
S
- Sampling - Interface in com.codahale.metrics
-
An object which samples values.
- sanitize(String) - Method in class com.codahale.metrics.CsvReporter
- sanitize(String) - Method in class com.codahale.metrics.FixedNameCsvFileProvider
- schedule(Runnable, long, TimeUnit) - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
- schedule(Callable<V>, long, TimeUnit) - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
- scheduleAtFixedRate(Runnable, long, long, TimeUnit) - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
- ScheduledReporter - Class in com.codahale.metrics
-
The abstract base class for all scheduled reporters (i.e., reporters which process a registry's metrics periodically).
- ScheduledReporter(MetricRegistry, String, MetricFilter, TimeUnit, TimeUnit) - Constructor for class com.codahale.metrics.ScheduledReporter
-
Creates a new
ScheduledReporter
instance. - ScheduledReporter(MetricRegistry, String, MetricFilter, TimeUnit, TimeUnit, ScheduledExecutorService) - Constructor for class com.codahale.metrics.ScheduledReporter
-
Creates a new
ScheduledReporter
instance. - ScheduledReporter(MetricRegistry, String, MetricFilter, TimeUnit, TimeUnit, ScheduledExecutorService, boolean) - Constructor for class com.codahale.metrics.ScheduledReporter
-
Creates a new
ScheduledReporter
instance. - ScheduledReporter(MetricRegistry, String, MetricFilter, TimeUnit, TimeUnit, ScheduledExecutorService, boolean, Set<MetricAttribute>) - Constructor for class com.codahale.metrics.ScheduledReporter
- scheduleOn(ScheduledExecutorService) - Method in class com.codahale.metrics.ConsoleReporter.Builder
-
Specifies the executor to use while scheduling reporting of metrics.
- scheduleOn(ScheduledExecutorService) - Method in class com.codahale.metrics.CsvReporter.Builder
-
Specifies the executor to use while scheduling reporting of metrics.
- scheduleOn(ScheduledExecutorService) - Method in class com.codahale.metrics.Slf4jReporter.Builder
-
Specifies the executor to use while scheduling reporting of metrics.
- scheduleWithFixedDelay(Runnable, long, long, TimeUnit) - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
- setDefault(String) - Static method in class com.codahale.metrics.SharedMetricRegistries
-
Creates a new registry and sets it as the default one under the provided name.
- setDefault(String, MetricRegistry) - Static method in class com.codahale.metrics.SharedMetricRegistries
-
Sets the provided registry as the default one under the provided name
- SettableGauge<T> - Interface in com.codahale.metrics
-
Similar to
Gauge
, but metric value is updated via calling#setValue(T)
instead. - setValue(T) - Method in class com.codahale.metrics.DefaultSettableGauge
-
Set the metric to a new value.
- setValue(T) - Method in interface com.codahale.metrics.SettableGauge
-
Set the metric to a new value.
- SharedMetricRegistries - Class in com.codahale.metrics
-
A map of shared, named metric registries.
- shutdown() - Method in class com.codahale.metrics.InstrumentedExecutorService
- shutdown() - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
- shutdownExecutorOnStop(boolean) - Method in class com.codahale.metrics.ConsoleReporter.Builder
-
Specifies whether or not, the executor (used for reporting) will be stopped with same time with reporter.
- shutdownExecutorOnStop(boolean) - Method in class com.codahale.metrics.CsvReporter.Builder
-
Specifies whether or not, the executor (used for reporting) will be stopped with same time with reporter.
- shutdownExecutorOnStop(boolean) - Method in class com.codahale.metrics.Slf4jReporter.Builder
-
Specifies whether or not, the executor (used for reporting) will be stopped with same time with reporter.
- shutdownNow() - Method in class com.codahale.metrics.InstrumentedExecutorService
- shutdownNow() - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
- size() - Method in class com.codahale.metrics.ExponentiallyDecayingReservoir
- size() - Method in class com.codahale.metrics.LockFreeExponentiallyDecayingReservoir
- size() - Method in interface com.codahale.metrics.Reservoir
-
Returns the number of values recorded.
- size() - Method in class com.codahale.metrics.SlidingTimeWindowArrayReservoir
- size() - Method in class com.codahale.metrics.SlidingTimeWindowReservoir
- size() - Method in class com.codahale.metrics.SlidingWindowReservoir
- size() - Method in class com.codahale.metrics.Snapshot
-
Returns the number of values in the snapshot.
- size() - Method in class com.codahale.metrics.UniformReservoir
- size() - Method in class com.codahale.metrics.UniformSnapshot
-
Returns the number of values in the snapshot.
- size() - Method in class com.codahale.metrics.WeightedSnapshot
-
Returns the number of values in the snapshot.
- size(int) - Method in class com.codahale.metrics.LockFreeExponentiallyDecayingReservoir.Builder
-
Maximum number of samples to keep in the reservoir.
- Slf4jReporter - Class in com.codahale.metrics
-
A reporter class for logging metrics values to a SLF4J
Logger
periodically, similar toConsoleReporter
orCsvReporter
, but using the SLF4J framework instead. - Slf4jReporter.Builder - Class in com.codahale.metrics
-
A builder for
Slf4jReporter
instances. - Slf4jReporter.LoggingLevel - Enum in com.codahale.metrics
- SlidingTimeWindowArrayReservoir - Class in com.codahale.metrics
-
A
Reservoir
implementation backed by a sliding window that stores only the measurements made in the lastN
seconds (or other time unit). - SlidingTimeWindowArrayReservoir(long, TimeUnit) - Constructor for class com.codahale.metrics.SlidingTimeWindowArrayReservoir
-
Creates a new
SlidingTimeWindowArrayReservoir
with the given window of time. - SlidingTimeWindowArrayReservoir(long, TimeUnit, Clock) - Constructor for class com.codahale.metrics.SlidingTimeWindowArrayReservoir
-
Creates a new
SlidingTimeWindowArrayReservoir
with the given clock and window of time. - SlidingTimeWindowMovingAverages - Class in com.codahale.metrics
-
A triple of simple moving average rates (one, five and fifteen minutes rates) as needed by
Meter
. - SlidingTimeWindowMovingAverages() - Constructor for class com.codahale.metrics.SlidingTimeWindowMovingAverages
-
Creates a new
SlidingTimeWindowMovingAverages
. - SlidingTimeWindowMovingAverages(Clock) - Constructor for class com.codahale.metrics.SlidingTimeWindowMovingAverages
-
Creates a new
SlidingTimeWindowMovingAverages
. - SlidingTimeWindowReservoir - Class in com.codahale.metrics
-
A
Reservoir
implementation backed by a sliding window that stores only the measurements made in the lastN
seconds (or other time unit). - SlidingTimeWindowReservoir(long, TimeUnit) - Constructor for class com.codahale.metrics.SlidingTimeWindowReservoir
-
Creates a new
SlidingTimeWindowReservoir
with the given window of time. - SlidingTimeWindowReservoir(long, TimeUnit, Clock) - Constructor for class com.codahale.metrics.SlidingTimeWindowReservoir
-
Creates a new
SlidingTimeWindowReservoir
with the given clock and window of time. - SlidingWindowReservoir - Class in com.codahale.metrics
-
A
Reservoir
implementation backed by a sliding window that stores the lastN
measurements. - SlidingWindowReservoir(int) - Constructor for class com.codahale.metrics.SlidingWindowReservoir
-
Creates a new
SlidingWindowReservoir
which stores the lastsize
measurements. - Snapshot - Class in com.codahale.metrics
-
A statistical snapshot of a
Snapshot
. - Snapshot() - Constructor for class com.codahale.metrics.Snapshot
- start(long, long, TimeUnit) - Method in class com.codahale.metrics.ScheduledReporter
-
Starts the reporter polling at the given period.
- start(long, TimeUnit) - Method in class com.codahale.metrics.ScheduledReporter
-
Starts the reporter polling at the given period.
- startsWith(String) - Static method in interface com.codahale.metrics.MetricFilter
- STDDEV - com.codahale.metrics.MetricAttribute
- stop() - Method in class com.codahale.metrics.ScheduledReporter
-
Stops the reporter and if shutdownExecutorOnStop is true then shuts down its thread of execution.
- stop() - Method in class com.codahale.metrics.Timer.Context
-
Updates the timer with the difference between current and start time.
- submit(Runnable) - Method in class com.codahale.metrics.InstrumentedExecutorService
- submit(Runnable) - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
- submit(Runnable, T) - Method in class com.codahale.metrics.InstrumentedExecutorService
- submit(Runnable, T) - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
- submit(Callable<T>) - Method in class com.codahale.metrics.InstrumentedExecutorService
- submit(Callable<T>) - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
T
- tick() - Method in class com.codahale.metrics.EWMA
-
Mark the passage of time and decay the current rate accordingly.
- tickIfNecessary() - Method in class com.codahale.metrics.ExponentialMovingAverages
- tickIfNecessary() - Method in interface com.codahale.metrics.MovingAverages
-
Tick the internal clock of the MovingAverages implementation if needed (according to the internal ticking interval)
- tickIfNecessary() - Method in class com.codahale.metrics.SlidingTimeWindowMovingAverages
- time() - Method in class com.codahale.metrics.Timer
-
Returns a new
Timer.Context
. - time(Runnable) - Method in class com.codahale.metrics.Timer
-
Times and records the duration of event.
- time(Callable<T>) - Method in class com.codahale.metrics.Timer
-
Times and records the duration of event.
- timer(String) - Method in class com.codahale.metrics.MetricRegistry
- timer(String) - Method in class com.codahale.metrics.NoopMetricRegistry
- timer(String, MetricRegistry.MetricSupplier<Timer>) - Method in class com.codahale.metrics.MetricRegistry
- timer(String, MetricRegistry.MetricSupplier<Timer>) - Method in class com.codahale.metrics.NoopMetricRegistry
- Timer - Class in com.codahale.metrics
-
A timer metric which aggregates timing durations and provides duration statistics, plus throughput statistics via
Meter
. - Timer() - Constructor for class com.codahale.metrics.Timer
- Timer(Meter, Histogram, Clock) - Constructor for class com.codahale.metrics.Timer
- Timer(Reservoir) - Constructor for class com.codahale.metrics.Timer
- Timer(Reservoir, Clock) - Constructor for class com.codahale.metrics.Timer
- Timer.Context - Class in com.codahale.metrics
-
A timing context.
- timeSupplier(Supplier<T>) - Method in class com.codahale.metrics.Timer
-
Times and records the duration of event.
- toString() - Method in class com.codahale.metrics.RatioGauge.Ratio
- TRACE - com.codahale.metrics.Slf4jReporter.LoggingLevel
- transform(F) - Method in class com.codahale.metrics.DerivativeGauge
-
Transforms the value of the base gauge to the value of this gauge.
- tryGetDefault() - Static method in class com.codahale.metrics.SharedMetricRegistries
-
Same as
SharedMetricRegistries.getDefault()
except returns null when the default registry has not been set.
U
- UniformReservoir - Class in com.codahale.metrics
-
A random sampling reservoir of a stream of
long
s. - UniformReservoir() - Constructor for class com.codahale.metrics.UniformReservoir
-
Creates a new
UniformReservoir
of 1028 elements, which offers a 99.9% confidence level with a 5% margin of error assuming a normal distribution. - UniformReservoir(int) - Constructor for class com.codahale.metrics.UniformReservoir
-
Creates a new
UniformReservoir
. - UniformSnapshot - Class in com.codahale.metrics
-
A statistical snapshot of a
UniformSnapshot
. - UniformSnapshot(long[]) - Constructor for class com.codahale.metrics.UniformSnapshot
-
Create a new
Snapshot
with the given values. - UniformSnapshot(Collection<Long>) - Constructor for class com.codahale.metrics.UniformSnapshot
-
Create a new
Snapshot
with the given values. - update(int) - Method in class com.codahale.metrics.Histogram
-
Adds a recorded value.
- update(long) - Method in class com.codahale.metrics.EWMA
-
Update the moving average with a new value.
- update(long) - Method in class com.codahale.metrics.ExponentiallyDecayingReservoir
- update(long) - Method in class com.codahale.metrics.ExponentialMovingAverages
- update(long) - Method in class com.codahale.metrics.Histogram
-
Adds a recorded value.
- update(long) - Method in class com.codahale.metrics.LockFreeExponentiallyDecayingReservoir
- update(long) - Method in interface com.codahale.metrics.MovingAverages
-
Update all three moving averages with n events having occurred since the last update.
- update(long) - Method in interface com.codahale.metrics.Reservoir
-
Adds a new recorded value to the reservoir.
- update(long) - Method in class com.codahale.metrics.SlidingTimeWindowArrayReservoir
- update(long) - Method in class com.codahale.metrics.SlidingTimeWindowMovingAverages
- update(long) - Method in class com.codahale.metrics.SlidingTimeWindowReservoir
- update(long) - Method in class com.codahale.metrics.SlidingWindowReservoir
- update(long) - Method in class com.codahale.metrics.UniformReservoir
- update(long, long) - Method in class com.codahale.metrics.ExponentiallyDecayingReservoir
-
Adds an old value with a fixed timestamp to the reservoir.
- update(long, TimeUnit) - Method in class com.codahale.metrics.Timer
-
Adds a recorded duration.
- update(Duration) - Method in class com.codahale.metrics.Timer
-
Adds a recorded duration.
- UserTimeClock() - Constructor for class com.codahale.metrics.Clock.UserTimeClock
V
- value - Variable in class com.codahale.metrics.WeightedSnapshot.WeightedSample
- valueOf(String) - Static method in enum com.codahale.metrics.MetricAttribute
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.codahale.metrics.Slf4jReporter.LoggingLevel
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.codahale.metrics.MetricAttribute
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.codahale.metrics.Slf4jReporter.LoggingLevel
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- WARN - com.codahale.metrics.Slf4jReporter.LoggingLevel
- weight - Variable in class com.codahale.metrics.WeightedSnapshot.WeightedSample
- WeightedSample(long, double) - Constructor for class com.codahale.metrics.WeightedSnapshot.WeightedSample
- WeightedSnapshot - Class in com.codahale.metrics
-
A statistical snapshot of a
WeightedSnapshot
. - WeightedSnapshot(Collection<WeightedSnapshot.WeightedSample>) - Constructor for class com.codahale.metrics.WeightedSnapshot
-
Create a new
Snapshot
with the given values. - WeightedSnapshot.WeightedSample - Class in com.codahale.metrics
-
A single sample item with value and its weights for
WeightedSnapshot
. - withClock(Clock) - Method in class com.codahale.metrics.ConsoleReporter.Builder
-
Use the given
Clock
instance for the time. - withClock(Clock) - Method in class com.codahale.metrics.CsvReporter.Builder
-
Use the given
Clock
instance for the time. - withCsvFileProvider(CsvFileProvider) - Method in class com.codahale.metrics.CsvReporter.Builder
- withLoggingLevel(Slf4jReporter.LoggingLevel) - Method in class com.codahale.metrics.Slf4jReporter.Builder
-
Use Logging Level when reporting.
- withSeparator(String) - Method in class com.codahale.metrics.CsvReporter.Builder
-
Use the given string to use as the separator for values.
All Classes All Packages