- 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 - Class in com.codahale.metrics
-
An abstraction for how time passes.
- Clock() - Constructor for class com.codahale.metrics.Clock
-
- Clock.CpuTimeClock - Class in com.codahale.metrics
-
A clock implementation which returns the current thread's CPU time.
- 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.JmxReporter
-
Stops the reporter.
- 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
-
- com.codahale.metrics - package com.codahale.metrics
-
- ConsoleReporter - Class in com.codahale.metrics
-
A reporter which outputs measurements to a
PrintStream
, like
System.out
.
- ConsoleReporter.Builder - Class in com.codahale.metrics
-
- 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.JmxReporter.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.JmxReporter.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.
- Counter - Class in com.codahale.metrics
-
An incrementing and decrementing counter metric.
- Counter() - Constructor for class com.codahale.metrics.Counter
-
- counter(String) - Method in class com.codahale.metrics.MetricRegistry
-
Return the
Counter
registered under this name; or create and register
a new
Counter
if none is registered.
- counter(String, MetricRegistry.MetricSupplier<Counter>) - Method in class com.codahale.metrics.MetricRegistry
-
Return the
Counter
registered under this name; or create and register
a new
Counter
using the provided MetricSupplier if none is registered.
- Counting - Interface in com.codahale.metrics
-
An interface for metric types which have counts.
- CpuTimeClock() - Constructor for class com.codahale.metrics.Clock.CpuTimeClock
-
- createName(String, String, String) - Method in class com.codahale.metrics.DefaultObjectNameFactory
-
- createName(String, String, String) - Method in interface com.codahale.metrics.ObjectNameFactory
-
- createsObjectNamesWith(ObjectNameFactory) - Method in class com.codahale.metrics.JmxReporter.Builder
-
- 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
-
- Gauge<T> - Interface in com.codahale.metrics
-
A gauge metric is an instantaneous reading of a particular value.
- gauge(String, MetricRegistry.MetricSupplier<Gauge>) - Method in class com.codahale.metrics.MetricRegistry
-
Return the
Gauge
registered under this name; or create and register
a new
Gauge
using the provided MetricSupplier if none is registered.
- get50thPercentile() - Method in interface com.codahale.metrics.JmxReporter.JmxHistogramMBean
-
- get50thPercentile() - Method in interface com.codahale.metrics.JmxReporter.JmxTimerMBean
-
- get75thPercentile() - Method in interface com.codahale.metrics.JmxReporter.JmxHistogramMBean
-
- get75thPercentile() - Method in interface com.codahale.metrics.JmxReporter.JmxTimerMBean
-
- get75thPercentile() - Method in class com.codahale.metrics.Snapshot
-
Returns the value at the 75th percentile in the distribution.
- get95thPercentile() - Method in interface com.codahale.metrics.JmxReporter.JmxHistogramMBean
-
- get95thPercentile() - Method in interface com.codahale.metrics.JmxReporter.JmxTimerMBean
-
- get95thPercentile() - Method in class com.codahale.metrics.Snapshot
-
Returns the value at the 95th percentile in the distribution.
- get98thPercentile() - Method in interface com.codahale.metrics.JmxReporter.JmxHistogramMBean
-
- get98thPercentile() - Method in interface com.codahale.metrics.JmxReporter.JmxTimerMBean
-
- get98thPercentile() - Method in class com.codahale.metrics.Snapshot
-
Returns the value at the 98th percentile in the distribution.
- get999thPercentile() - Method in interface com.codahale.metrics.JmxReporter.JmxHistogramMBean
-
- get999thPercentile() - Method in interface com.codahale.metrics.JmxReporter.JmxTimerMBean
-
- get999thPercentile() - Method in class com.codahale.metrics.Snapshot
-
Returns the value at the 99.9th percentile in the distribution.
- get99thPercentile() - Method in interface com.codahale.metrics.JmxReporter.JmxHistogramMBean
-
- get99thPercentile() - Method in interface com.codahale.metrics.JmxReporter.JmxTimerMBean
-
- 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 interface com.codahale.metrics.JmxReporter.JmxCounterMBean
-
- getCount() - Method in interface com.codahale.metrics.JmxReporter.JmxHistogramMBean
-
- getCount() - Method in interface com.codahale.metrics.JmxReporter.JmxMeterMBean
-
- 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(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.
- 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 interface com.codahale.metrics.JmxReporter.JmxTimerMBean
-
- getDurationUnit() - Method in class com.codahale.metrics.ScheduledReporter
-
- getFifteenMinuteRate() - Method in interface com.codahale.metrics.JmxReporter.JmxMeterMBean
-
- getFifteenMinuteRate() - Method in class com.codahale.metrics.Meter
-
- getFifteenMinuteRate() - Method in interface com.codahale.metrics.Metered
-
Returns the fifteen-minute exponentially-weighted 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 interface com.codahale.metrics.JmxReporter.JmxMeterMBean
-
- getFiveMinuteRate() - Method in class com.codahale.metrics.Meter
-
- getFiveMinuteRate() - Method in interface com.codahale.metrics.Metered
-
Returns the five-minute exponentially-weighted 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(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.
- getHistograms() - Method in class com.codahale.metrics.MetricRegistry
-
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.
- getMax() - Method in interface com.codahale.metrics.JmxReporter.JmxHistogramMBean
-
- getMax() - Method in interface com.codahale.metrics.JmxReporter.JmxTimerMBean
-
- 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 interface com.codahale.metrics.JmxReporter.JmxHistogramMBean
-
- getMean() - Method in interface com.codahale.metrics.JmxReporter.JmxTimerMBean
-
- 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 interface com.codahale.metrics.JmxReporter.JmxMeterMBean
-
- 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(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.
- getMetrics() - Method in class com.codahale.metrics.JvmAttributeGaugeSet
-
- getMetrics() - Method in class com.codahale.metrics.MetricRegistry
-
- getMetrics() - Method in interface com.codahale.metrics.MetricSet
-
A map of metric names to metrics.
- getMin() - Method in interface com.codahale.metrics.JmxReporter.JmxHistogramMBean
-
- getMin() - Method in interface com.codahale.metrics.JmxReporter.JmxTimerMBean
-
- 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.
- getOneMinuteRate() - Method in interface com.codahale.metrics.JmxReporter.JmxMeterMBean
-
- getOneMinuteRate() - Method in class com.codahale.metrics.Meter
-
- getOneMinuteRate() - Method in interface com.codahale.metrics.Metered
-
Returns the one-minute exponentially-weighted 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 interface com.codahale.metrics.JmxReporter.JmxMeterMBean
-
- getRateUnit() - Method in class com.codahale.metrics.ScheduledReporter
-
- getRateUnit() - Method in class com.codahale.metrics.Slf4jReporter
-
- getRatio() - Method in class com.codahale.metrics.RatioGauge
-
- getSnapshot() - Method in class com.codahale.metrics.ExponentiallyDecayingReservoir
-
- getSnapshot() - Method in class com.codahale.metrics.Histogram
-
- 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
-
- getSnapshotSize() - Method in interface com.codahale.metrics.JmxReporter.JmxHistogramMBean
-
- getStdDev() - Method in interface com.codahale.metrics.JmxReporter.JmxHistogramMBean
-
- getStdDev() - Method in interface com.codahale.metrics.JmxReporter.JmxTimerMBean
-
- 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.CpuTimeClock
-
- 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(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.
- getValue() - Method in class com.codahale.metrics.CachedGauge
-
- 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.JmxAttributeGauge
-
- getValue() - Method in interface com.codahale.metrics.JmxReporter.JmxGaugeMBean
-
- 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) or
NaN
.
- 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.
- 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
-
- ScheduledReporter(MetricRegistry, String, MetricFilter, TimeUnit, TimeUnit, ScheduledExecutorService) - Constructor for class com.codahale.metrics.ScheduledReporter
-
- ScheduledReporter(MetricRegistry, String, MetricFilter, TimeUnit, TimeUnit, ScheduledExecutorService, boolean) - Constructor for class com.codahale.metrics.ScheduledReporter
-
- 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
- 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 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.
- Slf4jReporter - Class in com.codahale.metrics
-
A reporter class for logging metrics values to a SLF4J
Logger
periodically, similar to
ConsoleReporter
or
CsvReporter
, but using the SLF4J framework instead.
- Slf4jReporter.Builder - Class in com.codahale.metrics
-
- 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 last
N
seconds (or other time unit).
- SlidingTimeWindowArrayReservoir(long, TimeUnit) - Constructor for class com.codahale.metrics.SlidingTimeWindowArrayReservoir
-
- SlidingTimeWindowArrayReservoir(long, TimeUnit, Clock) - Constructor for class com.codahale.metrics.SlidingTimeWindowArrayReservoir
-
- SlidingTimeWindowReservoir - Class in com.codahale.metrics
-
A
Reservoir
implementation backed by a sliding window that stores only the measurements made
in the last
N
seconds (or other time unit).
- SlidingTimeWindowReservoir(long, TimeUnit) - Constructor for class com.codahale.metrics.SlidingTimeWindowReservoir
-
- SlidingTimeWindowReservoir(long, TimeUnit, Clock) - Constructor for class com.codahale.metrics.SlidingTimeWindowReservoir
-
- SlidingWindowReservoir - Class in com.codahale.metrics
-
A
Reservoir
implementation backed by a sliding window that stores the last
N
measurements.
- SlidingWindowReservoir(int) - Constructor for class com.codahale.metrics.SlidingWindowReservoir
-
- Snapshot - Class in com.codahale.metrics
-
- Snapshot() - Constructor for class com.codahale.metrics.Snapshot
-
- specificDurationUnits(Map<String, TimeUnit>) - Method in class com.codahale.metrics.JmxReporter.Builder
-
Use specific
TimeUnit
s for the duration of the metrics with these names.
- specificRateUnits(Map<String, TimeUnit>) - Method in class com.codahale.metrics.JmxReporter.Builder
-
Use specific
TimeUnit
s for the rate of the metrics with these names.
- start() - Method in class com.codahale.metrics.JmxReporter
-
Starts the reporter.
- start(long, TimeUnit) - Method in class com.codahale.metrics.ScheduledReporter
-
Starts the reporter polling at the given period.
- start(long, long, TimeUnit) - Method in class com.codahale.metrics.ScheduledReporter
-
Starts the reporter polling at the given period.
- stop() - Method in class com.codahale.metrics.JmxReporter
-
Stops the reporter.
- 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, T) - Method in class com.codahale.metrics.InstrumentedExecutorService
- submit(Callable<T>) - Method in class com.codahale.metrics.InstrumentedExecutorService
- submit(Callable<T>) - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
- submit(Runnable, T) - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService
- submit(Runnable) - Method in class com.codahale.metrics.InstrumentedScheduledExecutorService