@Extension public class VMMetricProviderImpl extends MetricProvider
| Constructor and Description |
|---|
VMMetricProviderImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.codahale.metrics.MetricSet |
getMetricSet()
Returns the set of metrics to register.
|
com.codahale.metrics.Gauge<Double> |
getSystemCpuLoad()
Returns a gauge that reports the current system CPU load or
null if that metric is unavailable. |
com.codahale.metrics.Gauge<Double> |
getVmCpuLoad()
Returns a gauge that reports the current JVM CPU load or
null if that metric is unavailable. |
metric, metrics@CheckForNull public com.codahale.metrics.Gauge<Double> getSystemCpuLoad()
null if that metric is unavailable.null if that metric is unavailable.@CheckForNull public com.codahale.metrics.Gauge<Double> getVmCpuLoad()
null if that metric is unavailable.null if that metric is unavailable.@NonNull public com.codahale.metrics.MetricSet getMetricSet()
MetricProvidergetMetricSet in class MetricProviderCopyright © 2004-2014. All Rights Reserved.