Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- absolute() - Element in annotation interface com.codahale.metrics.annotation.ExceptionMetered
-
If
true, use the given name as an absolute name. - absolute() - Element in annotation interface com.codahale.metrics.annotation.Gauge
-
If
true, use the given name as an absolute name. - absolute() - Element in annotation interface com.codahale.metrics.annotation.Metered
-
If
true, use the given name as an absolute name. - absolute() - Element in annotation interface com.codahale.metrics.annotation.Timed
-
If
true, use the given name as an absolute name. - AbstractInstrumentedFilter - Class in com.codahale.metrics.servlet
-
Filterimplementation which captures request information and a breakdown of the response codes being returned. - AbstractInstrumentedFilter(String, Map, String) - Constructor for class com.codahale.metrics.servlet.AbstractInstrumentedFilter
-
Creates a new instance of the filter.
- activateOptions() - Method in class com.codahale.metrics.log4j.InstrumentedAppender
- add(String, MetricRegistry) - Static method in class com.codahale.metrics.SharedMetricRegistries
- addListener(MetricRegistryListener) - Method in class com.codahale.metrics.MetricRegistry
-
Adds a
MetricRegistryListenerto a collection of listeners that will be notified on metric creation. - AdminServlet - Class in com.codahale.metrics.servlets
- AdminServlet() - Constructor for class com.codahale.metrics.servlets.AdminServlet
- AdminServletContextListener - Class in com.codahale.metrics.servlets
-
Deprecated.
- AdminServletContextListener() - Constructor for class com.codahale.metrics.servlets.AdminServletContextListener
-
Deprecated.
- ALL - Static variable in interface com.codahale.metrics.MetricFilter
-
Matches all metrics, regardless of type or name.
- ALLOWED_ORIGIN - Static variable in class com.codahale.metrics.servlets.MetricsServlet
- append(ILoggingEvent) - Method in class com.codahale.metrics.logback.InstrumentedAppender
- append(LoggingEvent) - Method in class com.codahale.metrics.log4j.InstrumentedAppender
B
- Base() - Constructor for class com.codahale.metrics.MetricRegistryListener.Base
- BufferPoolMetricSet - Class in com.codahale.metrics.jvm
-
A set of gauges for the count, usage, and capacity of the JVM's direct and mapped buffer pools.
- BufferPoolMetricSet(MBeanServer) - Constructor for class com.codahale.metrics.jvm.BufferPoolMetricSet
- build() - Method in class com.codahale.metrics.ConsoleReporter.Builder
-
Builds a
ConsoleReporterwith the given properties. - build() - Method in class com.codahale.metrics.JmxReporter.Builder
-
Builds a
JmxReporterwith the given properties. - build() - Method in class com.codahale.metrics.Slf4jReporter.Builder
-
Builds a
Slf4jReporterwith the given properties. - build(Graphite) - Method in class com.codahale.metrics.graphite.GraphiteReporter.Builder
-
Builds a
GraphiteReporterwith the given properties, sending metrics using the givenGraphiteclient. - build(File) - Method in class com.codahale.metrics.CsvReporter.Builder
-
Builds a
CsvReporterwith the given properties, writing.csvfiles to the given directory. - buildMap() - Method in class com.codahale.metrics.MetricRegistry
-
Creates a new
ConcurrentMapimplementation for use inside the registry.
C
- CachedGauge<T> - Class in com.codahale.metrics
-
A
Gaugeimplementation 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.
- cause() - Element in annotation interface com.codahale.metrics.annotation.ExceptionMetered
-
The type of exceptions that the meter will catch and count.
- check() - Method in class com.codahale.metrics.health.HealthCheck
-
Perform a check of the application component.
- check() - Method in class com.codahale.metrics.health.jvm.ThreadDeadlockHealthCheck
- 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.graphite.Graphite
- close() - Method in class com.codahale.metrics.JmxReporter
-
Stops the reporter.
- close() - Method in class com.codahale.metrics.log4j.InstrumentedAppender
- 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
- com.codahale.metrics.annotation - package com.codahale.metrics.annotation
- com.codahale.metrics.graphite - package com.codahale.metrics.graphite
- com.codahale.metrics.health - package com.codahale.metrics.health
- com.codahale.metrics.health.jvm - package com.codahale.metrics.health.jvm
- com.codahale.metrics.httpclient - package com.codahale.metrics.httpclient
- com.codahale.metrics.json - package com.codahale.metrics.json
- com.codahale.metrics.jvm - package com.codahale.metrics.jvm
- com.codahale.metrics.log4j - package com.codahale.metrics.log4j
- com.codahale.metrics.logback - package com.codahale.metrics.logback
- com.codahale.metrics.servlet - package com.codahale.metrics.servlet
- com.codahale.metrics.servlets - package com.codahale.metrics.servlets
- connect() - Method in class com.codahale.metrics.graphite.Graphite
-
Connects to the server.
- 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
ConsoleReporterinstances. - contextDestroyed(ServletContextEvent) - Method in class com.codahale.metrics.servlet.InstrumentedFilterContextListener
- contextDestroyed(ServletContextEvent) - Method in class com.codahale.metrics.servlets.AdminServletContextListener
-
Deprecated.
- contextDestroyed(ServletContextEvent) - Method in class com.codahale.metrics.servlets.HealthCheckServlet.ContextListener
- contextDestroyed(ServletContextEvent) - Method in class com.codahale.metrics.servlets.MetricsServlet.ContextListener
- contextInitialized(ServletContextEvent) - Method in class com.codahale.metrics.servlet.InstrumentedFilterContextListener
- contextInitialized(ServletContextEvent) - Method in class com.codahale.metrics.servlets.AdminServletContextListener
-
Deprecated.
- contextInitialized(ServletContextEvent) - Method in class com.codahale.metrics.servlets.HealthCheckServlet.ContextListener
- contextInitialized(ServletContextEvent) - Method in class com.codahale.metrics.servlets.MetricsServlet.ContextListener
- ContextListener() - Constructor for class com.codahale.metrics.servlets.HealthCheckServlet.ContextListener
- ContextListener() - Constructor for class com.codahale.metrics.servlets.MetricsServlet.ContextListener
- 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.graphite.GraphiteReporter.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.graphite.GraphiteReporter.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(String) - Method in class com.codahale.metrics.MetricRegistry
-
Creates a new
Counterand registers it under the given name. - 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.
- CpuTimeClock() - Constructor for class com.codahale.metrics.Clock.CpuTimeClock
- createClientRequestDirector(HttpRequestExecutor, ClientConnectionManager, ConnectionReuseStrategy, ConnectionKeepAliveStrategy, HttpRoutePlanner, HttpProcessor, HttpRequestRetryHandler, RedirectStrategy, AuthenticationStrategy, AuthenticationStrategy, UserTokenHandler, HttpParams) - Method in class com.codahale.metrics.httpclient.InstrumentedHttpClient
- 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
CsvReporterinstances.
D
- 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. - DEFAULT_HEALTHCHECK_URI - Static variable in class com.codahale.metrics.servlets.AdminServlet
- DEFAULT_METRICS_URI - Static variable in class com.codahale.metrics.servlets.AdminServlet
- DEFAULT_NAME_SUFFIX - Static variable in annotation interface com.codahale.metrics.annotation.ExceptionMetered
-
The default suffix for meter names.
- DEFAULT_PING_URI - Static variable in class com.codahale.metrics.servlets.AdminServlet
- DEFAULT_THREADS_URI - Static variable in class com.codahale.metrics.servlets.AdminServlet
- defaultClock() - Static method in class com.codahale.metrics.Clock
-
The default clock to use.
- DerivativeGauge<F,
T> - Class in com.codahale.metrics -
A gauge whose value is derived from the value of another gauge.
- DerivativeGauge(Gauge) - Constructor for class com.codahale.metrics.DerivativeGauge
-
Creates a new derivative with the given base gauge.
- destroy() - Method in class com.codahale.metrics.servlet.AbstractInstrumentedFilter
- doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class com.codahale.metrics.servlet.AbstractInstrumentedFilter
- doGet(HttpServletRequest, HttpServletResponse) - Method in class com.codahale.metrics.servlets.AdminServlet
- doGet(HttpServletRequest, HttpServletResponse) - Method in class com.codahale.metrics.servlets.HealthCheckServlet
- doGet(HttpServletRequest, HttpServletResponse) - Method in class com.codahale.metrics.servlets.MetricsServlet
- doGet(HttpServletRequest, HttpServletResponse) - Method in class com.codahale.metrics.servlets.PingServlet
- doGet(HttpServletRequest, HttpServletResponse) - Method in class com.codahale.metrics.servlets.ThreadDumpServlet
- dump(OutputStream) - Method in class com.codahale.metrics.jvm.ThreadDump
-
Dumps all of the threads' current information to an output stream.
- dump(OutputStream) - Method in class com.codahale.metrics.Snapshot
-
Writes the values of the snapshot to the given stream.
- DURATION_UNIT - Static variable in class com.codahale.metrics.servlets.MetricsServlet
E
- equals(Object) - Method in class com.codahale.metrics.health.HealthCheck.Result
- 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.
- ExceptionMetered - Annotation Interface in com.codahale.metrics.annotation
-
An annotation for marking a method of an annotated object as metered.
- execute() - Method in class com.codahale.metrics.health.HealthCheck
-
Executes the health check, catching and handling any exceptions raised by
HealthCheck.check(). - execute(HttpHost, HttpRequest, HttpContext) - Method in class com.codahale.metrics.httpclient.InstrumentedRequestDirector
- ExponentiallyDecayingReservoir - Class in com.codahale.metrics
-
An exponentially-decaying random reservoir of
longs. - ExponentiallyDecayingReservoir() - Constructor for class com.codahale.metrics.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 com.codahale.metrics.ExponentiallyDecayingReservoir
-
Creates a new
ExponentiallyDecayingReservoir. - ExponentiallyDecayingReservoir(int, double, Clock) - Constructor for class com.codahale.metrics.ExponentiallyDecayingReservoir
-
Creates a new
ExponentiallyDecayingReservoir.
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.
- FileDescriptorRatioGauge - Class in com.codahale.metrics.jvm
-
A gauge for the ratio of used to total file descriptors.
- FileDescriptorRatioGauge() - Constructor for class com.codahale.metrics.jvm.FileDescriptorRatioGauge
-
Creates a new gauge using the platform OS bean.
- FileDescriptorRatioGauge(OperatingSystemMXBean) - Constructor for class com.codahale.metrics.jvm.FileDescriptorRatioGauge
-
Creates a new gauge using the given OS bean.
- 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.graphite.GraphiteReporter.Builder
-
Only report metrics which match the given filter.
- filter(MetricFilter) - Method in class com.codahale.metrics.JmxReporter.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.
- 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
TimeZonefor the time. - forRegistry(MetricRegistry) - Static method in class com.codahale.metrics.ConsoleReporter
-
Returns a new
ConsoleReporter.BuilderforConsoleReporter. - forRegistry(MetricRegistry) - Static method in class com.codahale.metrics.CsvReporter
-
Returns a new
CsvReporter.BuilderforCsvReporter. - forRegistry(MetricRegistry) - Static method in class com.codahale.metrics.graphite.GraphiteReporter
-
Returns a new
GraphiteReporter.BuilderforGraphiteReporter. - forRegistry(MetricRegistry) - Static method in class com.codahale.metrics.JmxReporter
-
Returns a new
JmxReporter.BuilderforJmxReporter. - forRegistry(MetricRegistry) - Static method in class com.codahale.metrics.Slf4jReporter
-
Returns a new
Slf4jReporter.BuilderforSlf4jReporter.
G
- GarbageCollectorMetricSet - Class in com.codahale.metrics.jvm
-
A set of gauges for the counts and elapsed times of garbage collections.
- GarbageCollectorMetricSet() - Constructor for class com.codahale.metrics.jvm.GarbageCollectorMetricSet
-
Creates a new set of gauges for all discoverable garbage collectors.
- GarbageCollectorMetricSet(Collection) - Constructor for class com.codahale.metrics.jvm.GarbageCollectorMetricSet
-
Creates a new set of gauges for the given collection of garbage collectors.
- Gauge<T> - Interface in com.codahale.metrics
-
A gauge metric is an instantaneous reading of a particular value.
- Gauge - Annotation Interface in com.codahale.metrics.annotation
-
An annotation for marking a method of an annotated object as a gauge.
- 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.
- getAllowedOrigin() - Method in class com.codahale.metrics.servlets.MetricsServlet.ContextListener
-
Returns the
Access-Control-Allow-Originheader value, if any. - 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.
- getDeadlockedThreads() - Method in class com.codahale.metrics.jvm.ThreadDeadlockDetector
-
Returns a set of diagnostic stack traces for any deadlocked threads.
- getDurationUnit() - Method in interface com.codahale.metrics.JmxReporter.JmxTimerMBean
- getDurationUnit() - Method in class com.codahale.metrics.ScheduledReporter
- getDurationUnit() - Method in class com.codahale.metrics.servlets.MetricsServlet.ContextListener
-
Returns the
TimeUnitto which durations should be converted, ornullif the default should be used. - getError() - Method in class com.codahale.metrics.health.HealthCheck.Result
-
Returns any exception for the result, or
nullif the result has no exception. - getExecutorService() - Method in class com.codahale.metrics.servlets.AdminServletContextListener
-
Deprecated.Returns the
ExecutorServiceto inject into the servlet context, ornullif the health checks should be run in the servlet worker thread. - getExecutorService() - Method in class com.codahale.metrics.servlets.HealthCheckServlet.ContextListener
-
Returns the
ExecutorServiceto inject into the servlet context, ornullif the health checks should be run in the servlet worker thread. - getFailures() - Method in class com.codahale.metrics.graphite.Graphite
-
Returns the number of failed writes to the server.
- 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
- 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.
- getHealthCheckRegistry() - Method in class com.codahale.metrics.servlets.AdminServletContextListener
-
Deprecated.Returns the
HealthCheckRegistryto inject into the servlet context. - getHealthCheckRegistry() - Method in class com.codahale.metrics.servlets.HealthCheckServlet.ContextListener
-
Returns the
HealthCheckRegistryto inject into the servlet context. - 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.
- 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.
- 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.
- getMessage() - Method in class com.codahale.metrics.health.HealthCheck.Result
-
Returns any additional message for the result, or
nullif the result has no message. - 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.
- getMetricRegistry() - Method in class com.codahale.metrics.servlet.InstrumentedFilterContextListener
-
Returns the
MetricRegistryto inject into the servlet context. - getMetricRegistry() - Method in class com.codahale.metrics.servlets.AdminServletContextListener
-
Deprecated.Returns the
MetricRegistryto inject into the servlet context. - getMetricRegistry() - Method in class com.codahale.metrics.servlets.MetricsServlet.ContextListener
-
Returns the
MetricRegistryto inject into the servlet context. - getMetrics() - Method in class com.codahale.metrics.jvm.BufferPoolMetricSet
- getMetrics() - Method in class com.codahale.metrics.jvm.GarbageCollectorMetricSet
- getMetrics() - Method in class com.codahale.metrics.jvm.MemoryUsageGaugeSet
- getMetrics() - Method in class com.codahale.metrics.jvm.ThreadStatesGaugeSet
- 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.
- getModuleName() - Method in class com.codahale.metrics.json.HealthCheckModule
- getModuleName() - Method in class com.codahale.metrics.json.MetricsModule
- getNameFor(String, HttpRequest) - Method in interface com.codahale.metrics.httpclient.HttpClientMetricNameStrategy
- getNames() - Method in class com.codahale.metrics.health.HealthCheckRegistry
-
Returns a set of the names of all registered health checks.
- 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.servlets.MetricsServlet.ContextListener
-
Returns the
TimeUnitto which rates should be converted, ornullif the default should be used. - getRateUnit() - Method in class com.codahale.metrics.Slf4jReporter
- getRatio() - Method in class com.codahale.metrics.jvm.FileDescriptorRatioGauge
- getRatio() - Method in class com.codahale.metrics.RatioGauge
-
Returns the
RatioGauge.Ratiowhich 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 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.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 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.
- 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
doublebetween 0 and 1 (inclusive) orNaN. - getValue(double) - Method in class com.codahale.metrics.Snapshot
-
Returns the value at the given quantile.
- getValues() - Method in class com.codahale.metrics.Snapshot
-
Returns the entire set of values in the snapshot.
- Graphite - Class in com.codahale.metrics.graphite
-
A client to a Carbon server.
- Graphite(InetSocketAddress) - Constructor for class com.codahale.metrics.graphite.Graphite
-
Creates a new client which connects to the given address using the default
SocketFactory. - Graphite(InetSocketAddress, SocketFactory) - Constructor for class com.codahale.metrics.graphite.Graphite
-
Creates a new client which connects to the given address and socket factory.
- Graphite(InetSocketAddress, SocketFactory, Charset) - Constructor for class com.codahale.metrics.graphite.Graphite
-
Creates a new client which connects to the given address and socket factory using the given character set.
- GraphiteReporter - Class in com.codahale.metrics.graphite
-
A reporter which publishes metric values to a Graphite server.
- GraphiteReporter.Builder - Class in com.codahale.metrics.graphite
-
A builder for
GraphiteReporterinstances.
H
- hashCode() - Method in class com.codahale.metrics.health.HealthCheck.Result
- HEALTH_CHECK_EXECUTOR - Static variable in class com.codahale.metrics.servlets.HealthCheckServlet
- HEALTH_CHECK_REGISTRY - Static variable in class com.codahale.metrics.servlets.HealthCheckServlet
- HealthCheck - Class in com.codahale.metrics.health
-
A health check for a component of your application.
- HealthCheck() - Constructor for class com.codahale.metrics.health.HealthCheck
- HealthCheck.Result - Class in com.codahale.metrics.health
-
The result of a
HealthCheckbeing run. - HealthCheckModule - Class in com.codahale.metrics.json
- HealthCheckModule() - Constructor for class com.codahale.metrics.json.HealthCheckModule
- HealthCheckRegistry - Class in com.codahale.metrics.health
-
A registry for health checks.
- HealthCheckRegistry() - Constructor for class com.codahale.metrics.health.HealthCheckRegistry
-
Creates a new
HealthCheckRegistry. - HealthCheckServlet - Class in com.codahale.metrics.servlets
- HealthCheckServlet() - Constructor for class com.codahale.metrics.servlets.HealthCheckServlet
- HealthCheckServlet(HealthCheckRegistry) - Constructor for class com.codahale.metrics.servlets.HealthCheckServlet
- HealthCheckServlet.ContextListener - Class in com.codahale.metrics.servlets
- healthy() - Static method in class com.codahale.metrics.health.HealthCheck.Result
-
Returns a healthy
HealthCheck.Resultwith no additional message. - healthy(String) - Static method in class com.codahale.metrics.health.HealthCheck.Result
-
Returns a healthy
HealthCheck.Resultwith an additional message. - healthy(String, Object...) - Static method in class com.codahale.metrics.health.HealthCheck.Result
-
Returns a healthy
HealthCheck.Resultwith a formatted message. - histogram(String) - Method in class com.codahale.metrics.MetricRegistry
-
Creates a new
Histogramand registers it under the given name. - 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
Histogramwith the given reservoir. - HOST_AND_METHOD - Static variable in class com.codahale.metrics.httpclient.HttpClientMetricNameStrategies
- HttpClientMetricNameStrategies - Class in com.codahale.metrics.httpclient
- HttpClientMetricNameStrategies() - Constructor for class com.codahale.metrics.httpclient.HttpClientMetricNameStrategies
- HttpClientMetricNameStrategy - Interface in com.codahale.metrics.httpclient
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. - inDomain(String) - Method in class com.codahale.metrics.JmxReporter.Builder
- init() - Method in class com.codahale.metrics.servlets.ThreadDumpServlet
- init(FilterConfig) - Method in class com.codahale.metrics.servlet.AbstractInstrumentedFilter
- init(ServletConfig) - Method in class com.codahale.metrics.servlets.AdminServlet
- init(ServletConfig) - Method in class com.codahale.metrics.servlets.HealthCheckServlet
- init(ServletConfig) - Method in class com.codahale.metrics.servlets.MetricsServlet
- InstrumentedAppender - Class in com.codahale.metrics.log4j
-
A Log4J
Appenderwhich has seven meters, one for each logging level and one for the total number of statements being logged. - InstrumentedAppender - Class in com.codahale.metrics.logback
-
A Logback
Appenderwhich has six meters, one for each logging level and one for the total number of statements being logged. - InstrumentedAppender(MetricRegistry) - Constructor for class com.codahale.metrics.log4j.InstrumentedAppender
-
Create a new instrumented appender using the given registry.
- InstrumentedAppender(MetricRegistry) - Constructor for class com.codahale.metrics.logback.InstrumentedAppender
-
Create a new instrumented appender using the given registry.
- InstrumentedAppender(String) - Constructor for class com.codahale.metrics.log4j.InstrumentedAppender
-
Create a new instrumented appender using the given registry name.
- InstrumentedAppender(String) - Constructor for class com.codahale.metrics.logback.InstrumentedAppender
-
Create a new instrumented appender using the given registry name.
- InstrumentedClientConnManager - Class in com.codahale.metrics.httpclient
-
A
ClientConnectionManagerwhich monitors the number of open connections. - InstrumentedClientConnManager(MetricRegistry) - Constructor for class com.codahale.metrics.httpclient.InstrumentedClientConnManager
- InstrumentedClientConnManager(MetricRegistry, SchemeRegistry) - Constructor for class com.codahale.metrics.httpclient.InstrumentedClientConnManager
- InstrumentedClientConnManager(MetricRegistry, SchemeRegistry, long, TimeUnit) - Constructor for class com.codahale.metrics.httpclient.InstrumentedClientConnManager
- InstrumentedClientConnManager(MetricRegistry, SchemeRegistry, long, TimeUnit, DnsResolver, String) - Constructor for class com.codahale.metrics.httpclient.InstrumentedClientConnManager
- InstrumentedFilter - Class in com.codahale.metrics.servlet
-
Implementation of the
AbstractInstrumentedFilterwhich provides a default set of response codes to capture information about. - InstrumentedFilter() - Constructor for class com.codahale.metrics.servlet.InstrumentedFilter
-
Creates a new instance of the filter.
- InstrumentedFilterContextListener - Class in com.codahale.metrics.servlet
-
A listener implementation which injects a
MetricRegistryinstance into the servlet context. - InstrumentedFilterContextListener() - Constructor for class com.codahale.metrics.servlet.InstrumentedFilterContextListener
- InstrumentedHttpClient - Class in com.codahale.metrics.httpclient
- InstrumentedHttpClient(MetricRegistry) - Constructor for class com.codahale.metrics.httpclient.InstrumentedHttpClient
- InstrumentedHttpClient(MetricRegistry, HttpClientMetricNameStrategy) - Constructor for class com.codahale.metrics.httpclient.InstrumentedHttpClient
- InstrumentedHttpClient(MetricRegistry, InstrumentedClientConnManager, HttpParams, String) - Constructor for class com.codahale.metrics.httpclient.InstrumentedHttpClient
- InstrumentedHttpClient(MetricRegistry, String, HttpClientMetricNameStrategy) - Constructor for class com.codahale.metrics.httpclient.InstrumentedHttpClient
- InstrumentedHttpClient(MetricRegistry, ClientConnectionManager, HttpParams, String, HttpClientMetricNameStrategy) - Constructor for class com.codahale.metrics.httpclient.InstrumentedHttpClient
- InstrumentedHttpClient(MetricRegistry, HttpParams) - Constructor for class com.codahale.metrics.httpclient.InstrumentedHttpClient
- InstrumentedRequestDirector - Class in com.codahale.metrics.httpclient
- InstrumentedRequestDirector(MetricRegistry, String, HttpClientMetricNameStrategy, Log, HttpRequestExecutor, ClientConnectionManager, ConnectionReuseStrategy, ConnectionKeepAliveStrategy, HttpRoutePlanner, HttpProcessor, HttpRequestRetryHandler, RedirectStrategy, AuthenticationStrategy, AuthenticationStrategy, UserTokenHandler, HttpParams) - Constructor for class com.codahale.metrics.httpclient.InstrumentedRequestDirector
- isHealthy() - Method in class com.codahale.metrics.health.HealthCheck.Result
-
Returns
trueif the result indicates the component is healthy;falseotherwise.
J
- JmxAttributeGauge - Class in com.codahale.metrics
-
A
Gaugeimplementation which queries aMBeanServerfor an attribute of an object. - JmxAttributeGauge(MBeanServer, ObjectName, String) - Constructor for class com.codahale.metrics.JmxAttributeGauge
-
Creates a new JmxAttributeGauge.
- JmxAttributeGauge(ObjectName, String) - Constructor for class com.codahale.metrics.JmxAttributeGauge
-
Creates a new JmxAttributeGauge.
- JmxReporter - Class in com.codahale.metrics
-
A reporter which listens for new metrics and exposes them as namespaced MBeans.
- JmxReporter.Builder - Class in com.codahale.metrics
-
A builder for
CsvReporterinstances. - JmxReporter.JmxCounterMBean - Interface in com.codahale.metrics
- JmxReporter.JmxGaugeMBean - Interface in com.codahale.metrics
- JmxReporter.JmxHistogramMBean - Interface in com.codahale.metrics
- JmxReporter.JmxMeterMBean - Interface in com.codahale.metrics
- JmxReporter.JmxTimerMBean - Interface in com.codahale.metrics
- JmxReporter.MetricMBean - Interface in com.codahale.metrics
- JvmAttributeGaugeSet - Class in com.codahale.metrics
-
A set of gauges for the JVM name, vendor, and uptime.
- JvmAttributeGaugeSet() - Constructor for class com.codahale.metrics.JvmAttributeGaugeSet
-
Creates a new set of gauges.
- JvmAttributeGaugeSet(RuntimeMXBean) - Constructor for class com.codahale.metrics.JvmAttributeGaugeSet
-
Creates a new set of gauges with the given
RuntimeMXBean.
L
- loadValue() - Method in class com.codahale.metrics.CachedGauge
-
Loads the value and returns it.
M
- 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
trueif the metric matches the filter;falseotherwise. - MemoryUsageGaugeSet - Class in com.codahale.metrics.jvm
-
A set of gauges for JVM memory usage, including stats on heap vs. non-heap memory, plus GC-specific memory pools.
- MemoryUsageGaugeSet() - Constructor for class com.codahale.metrics.jvm.MemoryUsageGaugeSet
- MemoryUsageGaugeSet(MemoryMXBean, Collection) - Constructor for class com.codahale.metrics.jvm.MemoryUsageGaugeSet
- meter(String) - Method in class com.codahale.metrics.MetricRegistry
-
Creates a new
Meterand registers it under the given name. - Meter - Class in com.codahale.metrics
-
A meter metric which measures mean throughput and one-, five-, and fifteen-minute exponentially-weighted 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. - Metered - Interface in com.codahale.metrics
-
An object which maintains mean and exponentially-weighted rate.
- Metered - Annotation Interface in com.codahale.metrics.annotation
-
An annotation for marking a method of an annotated object as metered.
- METHOD_ONLY - Static variable in class com.codahale.metrics.httpclient.HttpClientMetricNameStrategies
- Metric - Interface in com.codahale.metrics
-
A tag interface to indicate that a class is a metric.
- 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. - 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. - METRICS_REGISTRY - Static variable in class com.codahale.metrics.servlets.MetricsServlet
- MetricSet - Interface in com.codahale.metrics
-
A set of named metrics.
- MetricsModule - Class in com.codahale.metrics.json
- MetricsModule(TimeUnit, TimeUnit, boolean) - Constructor for class com.codahale.metrics.json.MetricsModule
- MetricsServlet - Class in com.codahale.metrics.servlets
-
A servlet which returns the metrics in a given registry as an
application/jsonresponse. - MetricsServlet() - Constructor for class com.codahale.metrics.servlets.MetricsServlet
- MetricsServlet(MetricRegistry) - Constructor for class com.codahale.metrics.servlets.MetricsServlet
- MetricsServlet.ContextListener - Class in com.codahale.metrics.servlets
-
An abstract
ServletContextListenerwhich allows you to programmatically inject theMetricRegistry, rate and duration units, and allowed origin forMetricsServlet.
N
- name() - Element in annotation interface com.codahale.metrics.annotation.ExceptionMetered
-
The name of the meter.
- name() - Element in annotation interface com.codahale.metrics.annotation.Gauge
-
The gauge's name.
- name() - Element in annotation interface com.codahale.metrics.annotation.Metered
-
The name of the meter.
- name() - Element in annotation interface com.codahale.metrics.annotation.Timed
-
The name of the timer.
- 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
O
- objectName() - Method in interface com.codahale.metrics.JmxReporter.MetricMBean
- 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
Counteris 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
Counteris 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
Gaugeis 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
Gaugeis 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
Histogramis 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
Histogramis 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
Meteris 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
Meteris 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
Timeris 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
Timeris 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
- PingServlet - Class in com.codahale.metrics.servlets
-
An HTTP servlets which outputs a
text/plain"pong"response. - PingServlet() - Constructor for class com.codahale.metrics.servlets.PingServlet
- prefixedWith(String) - Method in class com.codahale.metrics.graphite.GraphiteReporter.Builder
-
Prefix all metric names with the given string.
Q
- QUERYLESS_URL_AND_METHOD - Static variable in class com.codahale.metrics.httpclient.HttpClientMetricNameStrategies
R
- RATE_UNIT - Static variable in class com.codahale.metrics.servlets.MetricsServlet
- 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, HealthCheck) - Method in class com.codahale.metrics.health.HealthCheckRegistry
-
Registers an application
HealthCheck. - register(String, T) - Method in class com.codahale.metrics.MetricRegistry
-
Given a
Metric, registers it under the given name. - registerAll(MetricSet) - Method in class com.codahale.metrics.MetricRegistry
-
Given a metric set, registers them.
- registerWith(MBeanServer) - Method in class com.codahale.metrics.JmxReporter.Builder
-
Register MBeans with the given
MBeanServer. - REGISTRY_ATTRIBUTE - Static variable in class com.codahale.metrics.servlet.InstrumentedFilter
- remove(String) - Method in class com.codahale.metrics.MetricRegistry
-
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
MetricRegistryListenerfrom this registry's collection of listeners. - removeMatching(MetricFilter) - Method in class com.codahale.metrics.MetricRegistry
-
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, SortedMap, SortedMap, SortedMap, SortedMap) - Method in class com.codahale.metrics.ConsoleReporter
- report(SortedMap, SortedMap, SortedMap, SortedMap, SortedMap) - Method in class com.codahale.metrics.CsvReporter
- report(SortedMap, SortedMap, SortedMap, SortedMap, SortedMap) - Method in class com.codahale.metrics.graphite.GraphiteReporter
- report(SortedMap, SortedMap, SortedMap, SortedMap, SortedMap) - Method in class com.codahale.metrics.ScheduledReporter
-
Called periodically by the polling thread.
- report(SortedMap, SortedMap, SortedMap, SortedMap, SortedMap) - Method in class com.codahale.metrics.Slf4jReporter
- requiresLayout() - Method in class com.codahale.metrics.log4j.InstrumentedAppender
- Reservoir - Interface in com.codahale.metrics
-
A statistically representative reservoir of a data stream.
- runHealthCheck(String) - Method in class com.codahale.metrics.health.HealthCheckRegistry
-
Runs the health check with the given name.
- runHealthChecks() - Method in class com.codahale.metrics.health.HealthCheckRegistry
-
Runs the registered health checks and returns a map of the results.
- runHealthChecks(ExecutorService) - Method in class com.codahale.metrics.health.HealthCheckRegistry
-
Runs the registered health checks in parallel and returns a map of the results.
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.graphite.Graphite
- 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
ScheduledReporterinstance. - send(String, String, long) - Method in class com.codahale.metrics.graphite.Graphite
-
Sends the given measurement to the server.
- service(HttpServletRequest, HttpServletResponse) - Method in class com.codahale.metrics.servlets.AdminServlet
- setupModule(Module.SetupContext) - Method in class com.codahale.metrics.json.HealthCheckModule
- setupModule(Module.SetupContext) - Method in class com.codahale.metrics.json.MetricsModule
- SharedMetricRegistries - Class in com.codahale.metrics
-
A map of shared, named metric registries.
- SHOW_SAMPLES - Static variable in class com.codahale.metrics.servlets.MetricsServlet
- 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.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
- Slf4jReporter - Class in com.codahale.metrics
-
A reporter class for logging metrics values to a SLF4J
Loggerperiodically, similar toConsoleReporterorCsvReporter, but using the SLF4J framework instead. - Slf4jReporter.Builder - Class in com.codahale.metrics
-
A builder for
CsvReporterinstances. - SlidingTimeWindowReservoir - Class in com.codahale.metrics
-
A
Reservoirimplementation backed by a sliding window that stores only the measurements made in the lastNseconds (or other time unit). - SlidingTimeWindowReservoir(long, TimeUnit) - Constructor for class com.codahale.metrics.SlidingTimeWindowReservoir
-
Creates a new
SlidingTimeWindowReservoirwith the given window of time. - SlidingTimeWindowReservoir(long, TimeUnit, Clock) - Constructor for class com.codahale.metrics.SlidingTimeWindowReservoir
-
Creates a new
SlidingTimeWindowReservoirwith the given clock and window of time. - SlidingWindowReservoir - Class in com.codahale.metrics
-
A
Reservoirimplementation backed by a sliding window that stores the lastNmeasurements. - SlidingWindowReservoir(int) - Constructor for class com.codahale.metrics.SlidingWindowReservoir
-
Creates a new
SlidingWindowReservoirwhich stores the lastsizemeasurements. - Snapshot - Class in com.codahale.metrics
-
A statistical snapshot of a
Snapshot. - Snapshot(long[]) - Constructor for class com.codahale.metrics.Snapshot
-
Create a new
Snapshotwith the given values. - Snapshot(Collection) - Constructor for class com.codahale.metrics.Snapshot
-
Create a new
Snapshotwith the given values. - specificDurationUnits(Map) - Method in class com.codahale.metrics.JmxReporter.Builder
-
Use specific
TimeUnits for the duration of the metrics with these names. - specificRateUnits(Map) - Method in class com.codahale.metrics.JmxReporter.Builder
-
Use specific
TimeUnits for the rate of the metrics with these names. - start() - Method in class com.codahale.metrics.JmxReporter
-
Starts the reporter.
- start() - Method in class com.codahale.metrics.logback.InstrumentedAppender
- start(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 shuts down its thread of execution.
- stop() - Method in class com.codahale.metrics.Timer.Context
-
Stops recording the elapsed time, updates the timer and returns the elapsed time in nanoseconds.
T
- ThreadDeadlockDetector - Class in com.codahale.metrics.jvm
-
A utility class for detecting deadlocked threads.
- ThreadDeadlockDetector() - Constructor for class com.codahale.metrics.jvm.ThreadDeadlockDetector
-
Creates a new detector.
- ThreadDeadlockDetector(ThreadMXBean) - Constructor for class com.codahale.metrics.jvm.ThreadDeadlockDetector
-
Creates a new detector using the given
ThreadMXBean. - ThreadDeadlockHealthCheck - Class in com.codahale.metrics.health.jvm
-
A health check which returns healthy if no threads are deadlocked.
- ThreadDeadlockHealthCheck() - Constructor for class com.codahale.metrics.health.jvm.ThreadDeadlockHealthCheck
-
Creates a new health check.
- ThreadDeadlockHealthCheck(ThreadDeadlockDetector) - Constructor for class com.codahale.metrics.health.jvm.ThreadDeadlockHealthCheck
-
Creates a new health check with the given detector.
- ThreadDump - Class in com.codahale.metrics.jvm
-
A convenience class for getting a thread dump.
- ThreadDump(ThreadMXBean) - Constructor for class com.codahale.metrics.jvm.ThreadDump
- ThreadDumpServlet - Class in com.codahale.metrics.servlets
-
An HTTP servlets which outputs a
text/plaindump of all threads in the VM. - ThreadDumpServlet() - Constructor for class com.codahale.metrics.servlets.ThreadDumpServlet
- ThreadStatesGaugeSet - Class in com.codahale.metrics.jvm
-
A set of gauges for the number of threads in their various states and deadlock detection.
- ThreadStatesGaugeSet() - Constructor for class com.codahale.metrics.jvm.ThreadStatesGaugeSet
-
Creates a new set of gauges using the default MXBeans.
- ThreadStatesGaugeSet(ThreadMXBean, ThreadDeadlockDetector) - Constructor for class com.codahale.metrics.jvm.ThreadStatesGaugeSet
-
Creates a new set of gauges using the given MXBean and detector.
- tick() - Method in class com.codahale.metrics.EWMA
-
Mark the passage of time and decay the current rate accordingly.
- time() - Method in class com.codahale.metrics.Timer
-
Returns a new
Timer.Context. - time(Callable) - Method in class com.codahale.metrics.Timer
-
Times and records the duration of event.
- Timed - Annotation Interface in com.codahale.metrics.annotation
-
An annotation for marking a method of an annotated object as timed.
- timer(String) - Method in class com.codahale.metrics.MetricRegistry
-
Creates a new
Timerand registers it under the given name. - 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(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.
- toString() - Method in class com.codahale.metrics.health.HealthCheck.Result
- toString() - Method in class com.codahale.metrics.RatioGauge.Ratio
- transform(F) - Method in class com.codahale.metrics.DerivativeGauge
-
Transforms the value of the base gauge to the value of this gauge.
U
- unhealthy(String) - Static method in class com.codahale.metrics.health.HealthCheck.Result
-
Returns an unhealthy
HealthCheck.Resultwith the given message. - unhealthy(String, Object...) - Static method in class com.codahale.metrics.health.HealthCheck.Result
-
Returns an unhealthy
HealthCheck.Resultwith a formatted message. - unhealthy(Throwable) - Static method in class com.codahale.metrics.health.HealthCheck.Result
-
Returns an unhealthy
HealthCheck.Resultwith the given error. - UniformReservoir - Class in com.codahale.metrics
-
A random sampling reservoir of a stream of
longs. - UniformReservoir() - Constructor for class com.codahale.metrics.UniformReservoir
-
Creates a new
UniformReservoirof 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. - unregister(String) - Method in class com.codahale.metrics.health.HealthCheckRegistry
-
Unregisters the application
HealthCheckwith the given name. - 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.Histogram
-
Adds a recorded value.
- 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.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.
- UserTimeClock() - Constructor for class com.codahale.metrics.Clock.UserTimeClock
V
- values() - Method in interface com.codahale.metrics.JmxReporter.JmxHistogramMBean
- values() - Method in interface com.codahale.metrics.JmxReporter.JmxTimerMBean
- version() - Method in class com.codahale.metrics.json.HealthCheckModule
- version() - Method in class com.codahale.metrics.json.MetricsModule
W
- withClock(Clock) - Method in class com.codahale.metrics.ConsoleReporter.Builder
-
Use the given
Clockinstance for the time. - withClock(Clock) - Method in class com.codahale.metrics.CsvReporter.Builder
-
Use the given
Clockinstance for the time. - withClock(Clock) - Method in class com.codahale.metrics.graphite.GraphiteReporter.Builder
-
Use the given
Clockinstance for the time.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
MetricsServlet.ContextListenerandHealthCheckServlet.ContextListenerinstead.