@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, 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()
MetricProvider
getMetricSet
in class MetricProvider
Copyright © 2004-2016. All Rights Reserved.