public class MetricsAssertHelperImpl.MockRecordBuilder extends org.apache.hadoop.metrics2.MetricsRecordBuilder
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.metrics2.MetricsCollector |
mockMetricsBuilder |
Constructor and Description |
---|
MockRecordBuilder(org.apache.hadoop.metrics2.MetricsCollector mockMetricsBuilder) |
Modifier and Type | Method and 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 |
parent() |
org.apache.hadoop.metrics2.MetricsRecordBuilder |
setContext(String s) |
org.apache.hadoop.metrics2.MetricsRecordBuilder |
tag(org.apache.hadoop.metrics2.MetricsInfo metricsInfo,
String s) |
private final org.apache.hadoop.metrics2.MetricsCollector mockMetricsBuilder
public MockRecordBuilder(org.apache.hadoop.metrics2.MetricsCollector mockMetricsBuilder)
public org.apache.hadoop.metrics2.MetricsRecordBuilder tag(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, String s)
tag
in class org.apache.hadoop.metrics2.MetricsRecordBuilder
public org.apache.hadoop.metrics2.MetricsRecordBuilder add(org.apache.hadoop.metrics2.MetricsTag metricsTag)
add
in class org.apache.hadoop.metrics2.MetricsRecordBuilder
public org.apache.hadoop.metrics2.MetricsRecordBuilder add(org.apache.hadoop.metrics2.AbstractMetric abstractMetric)
add
in class org.apache.hadoop.metrics2.MetricsRecordBuilder
public org.apache.hadoop.metrics2.MetricsRecordBuilder setContext(String s)
setContext
in class org.apache.hadoop.metrics2.MetricsRecordBuilder
public org.apache.hadoop.metrics2.MetricsRecordBuilder addCounter(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, int i)
addCounter
in class org.apache.hadoop.metrics2.MetricsRecordBuilder
public org.apache.hadoop.metrics2.MetricsRecordBuilder addCounter(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, long l)
addCounter
in class org.apache.hadoop.metrics2.MetricsRecordBuilder
public org.apache.hadoop.metrics2.MetricsRecordBuilder addGauge(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, int i)
addGauge
in class org.apache.hadoop.metrics2.MetricsRecordBuilder
public org.apache.hadoop.metrics2.MetricsRecordBuilder addGauge(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, long l)
addGauge
in class org.apache.hadoop.metrics2.MetricsRecordBuilder
public org.apache.hadoop.metrics2.MetricsRecordBuilder addGauge(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, float v)
addGauge
in class org.apache.hadoop.metrics2.MetricsRecordBuilder
public org.apache.hadoop.metrics2.MetricsRecordBuilder addGauge(org.apache.hadoop.metrics2.MetricsInfo metricsInfo, double v)
addGauge
in class org.apache.hadoop.metrics2.MetricsRecordBuilder
public org.apache.hadoop.metrics2.MetricsCollector parent()
parent
in class org.apache.hadoop.metrics2.MetricsRecordBuilder
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.