Package alluxio.metrics.source
Class JvmSource
- java.lang.Object
-
- alluxio.metrics.source.JvmSource
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.codahale.metrics.MetricRegistry
getMetricRegistry()
Gets the instance of theMetricRegistry
.java.lang.String
getName()
Gets the name of the Source.
-
-
-
Constructor Detail
-
JvmSource
public JvmSource()
Creates a newJvmSource
and register all JVM metrics.
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:Source
Gets the name of the Source.
-
getMetricRegistry
public com.codahale.metrics.MetricRegistry getMetricRegistry()
Description copied from interface:Source
Gets the instance of theMetricRegistry
. A MetricRegistry is used to register the metrics, and is passed to a Sink so that the sink knows which metrics to report.- Specified by:
getMetricRegistry
in interfaceSource
- Returns:
- the instance of the MetricRegistry
-
-