Class Metrics
- java.lang.Object
-
- org.apache.accumulo.server.metrics.Metrics
-
- All Implemented Interfaces:
org.apache.hadoop.metrics2.MetricsSource
- Direct Known Subclasses:
ThriftMetrics
public abstract class Metrics extends Object implements org.apache.hadoop.metrics2.MetricsSource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetMetrics(org.apache.hadoop.metrics2.MetricsCollector collector, boolean all)protected voidgetMoreMetrics(org.apache.hadoop.metrics2.MetricsRecordBuilder builder, boolean all)Append any additional metrics directly to the builder whengetMetrics(MetricsCollector, boolean)is called, after any metrics in theMetricsRegistryhave already been added.protected org.apache.hadoop.metrics2.lib.MetricsRegistrygetRegistry()static org.apache.hadoop.metrics2.MetricsSysteminitSystem(String serviceName)protected voidprepareMetrics()Runs prior togetMetrics(MetricsCollector, boolean)in order to prepare metrics in theMetricsRegistryto be published.voidregister(org.apache.hadoop.metrics2.MetricsSystem system)
-
-
-
Method Detail
-
initSystem
public static org.apache.hadoop.metrics2.MetricsSystem initSystem(String serviceName)
-
register
public void register(org.apache.hadoop.metrics2.MetricsSystem system)
-
getRegistry
protected final org.apache.hadoop.metrics2.lib.MetricsRegistry getRegistry()
-
prepareMetrics
protected void prepareMetrics()
Runs prior togetMetrics(MetricsCollector, boolean)in order to prepare metrics in theMetricsRegistryto be published.
-
getMoreMetrics
protected void getMoreMetrics(org.apache.hadoop.metrics2.MetricsRecordBuilder builder, boolean all)Append any additional metrics directly to the builder whengetMetrics(MetricsCollector, boolean)is called, after any metrics in theMetricsRegistryhave already been added.
-
getMetrics
public final void getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector, boolean all)- Specified by:
getMetricsin interfaceorg.apache.hadoop.metrics2.MetricsSource
-
-