Class MetricsAssertHelperImpl.MockRecordBuilder

java.lang.Object
org.apache.hadoop.metrics2.MetricsRecordBuilder
org.apache.hadoop.hbase.test.MetricsAssertHelperImpl.MockRecordBuilder
Enclosing class:
MetricsAssertHelperImpl

public class MetricsAssertHelperImpl.MockRecordBuilder extends org.apache.hadoop.metrics2.MetricsRecordBuilder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.hadoop.metrics2.MetricsCollector
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    MockRecordBuilder(org.apache.hadoop.metrics2.MetricsCollector mockMetricsBuilder)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hadoop.metrics2.MetricsRecordBuilder
    add(org.apache.hadoop.metrics2.AbstractMetric abstractMetric)
     
    org.apache.hadoop.metrics2.MetricsRecordBuilder
    add(org.apache.hadoop.metrics2.MetricsTag metricsTag)
     
    org.apache.hadoop.metrics2.MetricsRecordBuilder
    addCounter(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, int i)
     
    org.apache.hadoop.metrics2.MetricsRecordBuilder
    addCounter(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, long l)
     
    org.apache.hadoop.metrics2.MetricsRecordBuilder
    addGauge(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, double v)
     
    org.apache.hadoop.metrics2.MetricsRecordBuilder
    addGauge(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, float v)
     
    org.apache.hadoop.metrics2.MetricsRecordBuilder
    addGauge(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, int i)
     
    org.apache.hadoop.metrics2.MetricsRecordBuilder
    addGauge(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, long l)
     
    org.apache.hadoop.metrics2.MetricsCollector
     
    org.apache.hadoop.metrics2.MetricsRecordBuilder
     
    org.apache.hadoop.metrics2.MetricsRecordBuilder
    tag(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, String s)
     

    Methods inherited from class org.apache.hadoop.metrics2.MetricsRecordBuilder

    endRecord

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • mockMetricsBuilder

      private final org.apache.hadoop.metrics2.MetricsCollector mockMetricsBuilder
  • Constructor Details

    • MockRecordBuilder

      public MockRecordBuilder(org.apache.hadoop.metrics2.MetricsCollector mockMetricsBuilder)
  • Method Details

    • tag

      public org.apache.hadoop.metrics2.MetricsRecordBuilder tag(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, String s)
      Specified by:
      tag in class org.apache.hadoop.metrics2.MetricsRecordBuilder
    • add

      public org.apache.hadoop.metrics2.MetricsRecordBuilder add(org.apache.hadoop.metrics2.MetricsTag metricsTag)
      Specified by:
      add in class org.apache.hadoop.metrics2.MetricsRecordBuilder
    • add

      public org.apache.hadoop.metrics2.MetricsRecordBuilder add(org.apache.hadoop.metrics2.AbstractMetric abstractMetric)
      Specified by:
      add in class org.apache.hadoop.metrics2.MetricsRecordBuilder
    • setContext

      public org.apache.hadoop.metrics2.MetricsRecordBuilder setContext(String s)
      Specified by:
      setContext in class org.apache.hadoop.metrics2.MetricsRecordBuilder
    • addCounter

      public org.apache.hadoop.metrics2.MetricsRecordBuilder addCounter(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, int i)
      Specified by:
      addCounter in class org.apache.hadoop.metrics2.MetricsRecordBuilder
    • addCounter

      public org.apache.hadoop.metrics2.MetricsRecordBuilder addCounter(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, long l)
      Specified by:
      addCounter in class org.apache.hadoop.metrics2.MetricsRecordBuilder
    • addGauge

      public org.apache.hadoop.metrics2.MetricsRecordBuilder addGauge(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, int i)
      Specified by:
      addGauge in class org.apache.hadoop.metrics2.MetricsRecordBuilder
    • addGauge

      public org.apache.hadoop.metrics2.MetricsRecordBuilder addGauge(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, long l)
      Specified by:
      addGauge in class org.apache.hadoop.metrics2.MetricsRecordBuilder
    • addGauge

      public org.apache.hadoop.metrics2.MetricsRecordBuilder addGauge(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, float v)
      Specified by:
      addGauge in class org.apache.hadoop.metrics2.MetricsRecordBuilder
    • addGauge

      public org.apache.hadoop.metrics2.MetricsRecordBuilder addGauge(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, double v)
      Specified by:
      addGauge in class org.apache.hadoop.metrics2.MetricsRecordBuilder
    • parent

      public org.apache.hadoop.metrics2.MetricsCollector parent()
      Specified by:
      parent in class org.apache.hadoop.metrics2.MetricsRecordBuilder