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 void
getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector, boolean all)
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 theMetricsRegistry
have already been added.protected org.apache.hadoop.metrics2.lib.MetricsRegistry
getRegistry()
static org.apache.hadoop.metrics2.MetricsSystem
initSystem(String serviceName)
protected void
prepareMetrics()
Runs prior togetMetrics(MetricsCollector, boolean)
in order to prepare metrics in theMetricsRegistry
to be published.void
register(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 theMetricsRegistry
to 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 theMetricsRegistry
have already been added.
-
getMetrics
public final void getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector, boolean all)
- Specified by:
getMetrics
in interfaceorg.apache.hadoop.metrics2.MetricsSource
-
-