public class CacheMetrics
extends java.lang.Object
ICache
.Modifier and Type | Field and Description |
---|---|
com.codahale.metrics.Gauge<java.lang.Long> |
capacity
Cache capacity in bytes
|
com.codahale.metrics.Gauge<java.lang.Integer> |
entries
Total number of cache entries
|
com.codahale.metrics.Gauge<java.lang.Double> |
hitRate
cache hit rate
|
com.codahale.metrics.Meter |
hits
Total number of cache hits
|
com.codahale.metrics.Meter |
requests
Total number of cache requests
|
com.codahale.metrics.Gauge<java.lang.Long> |
size
Total size of cache, in bytes
|
Constructor and Description |
---|
CacheMetrics(java.lang.String type,
ICache cache)
Create metrics for given cache.
|
public final com.codahale.metrics.Gauge<java.lang.Long> capacity
public final com.codahale.metrics.Meter hits
public final com.codahale.metrics.Meter requests
public final com.codahale.metrics.Gauge<java.lang.Double> hitRate
public final com.codahale.metrics.Gauge<java.lang.Long> size
public final com.codahale.metrics.Gauge<java.lang.Integer> entries
public CacheMetrics(java.lang.String type, ICache cache)
type
- Type of Cache to identify metrics.cache
- Cache to measure metricsCopyright © 2018 The Apache Software Foundation