Class 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 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()
      • getMoreMetrics

        protected void getMoreMetrics​(org.apache.hadoop.metrics2.MetricsRecordBuilder builder,
                                      boolean all)
        Append any additional metrics directly to the builder when getMetrics(MetricsCollector, boolean) is called, after any metrics in the MetricsRegistry have already been added.
      • getMetrics

        public final void getMetrics​(org.apache.hadoop.metrics2.MetricsCollector collector,
                                     boolean all)
        Specified by:
        getMetrics in interface org.apache.hadoop.metrics2.MetricsSource