@ThreadSafe public class JvmSource extends Object implements Source
Constructor and Description |
---|
JvmSource()
Creates a new
JvmSource and register all JVM metrics. |
Modifier and Type | Method and Description |
---|---|
com.codahale.metrics.MetricRegistry |
getMetricRegistry()
Gets the instance of the
MetricRegistry . |
String |
getName()
Gets the name of the Source.
|
public JvmSource()
JvmSource
and register all JVM metrics.public String getName()
Source
public com.codahale.metrics.MetricRegistry getMetricRegistry()
Source
MetricRegistry
. A MetricRegistry is used to register the
metrics, and is passed to a Sink so that the sink knows which metrics to report.getMetricRegistry
in interface Source
Copyright © 2023. All Rights Reserved.