@InterfaceAudience.Private @Metrics(context="yarn") public class GenericEventTypeMetrics<T extends Enum<T>> extends Object implements EventTypeMetrics<T>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | GenericEventTypeMetrics.EventTypeMetricsBuilder<T extends Enum<T>>Builder class for GenericEventTypeMetrics. | 
| Constructor and Description | 
|---|
| GenericEventTypeMetrics(org.apache.hadoop.metrics2.MetricsInfo info,
                       org.apache.hadoop.metrics2.MetricsSystem ms,
                       T[] enums,
                       Class<T> enumClass) | 
| Modifier and Type | Method and Description | 
|---|---|
| long | get(T type) | 
| Class<T> | getEnumClass() | 
| EnumMap<T,org.apache.hadoop.metrics2.lib.MutableGaugeLong> | getEventCountMetrics() | 
| org.apache.hadoop.metrics2.MetricsInfo | getInfo() | 
| void | getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector,
          boolean all) | 
| EnumMap<T,org.apache.hadoop.metrics2.lib.MutableGaugeLong> | getProcessingTimeMetrics() | 
| org.apache.hadoop.metrics2.lib.MetricsRegistry | getRegistry() | 
| long | getTotalProcessingTime(T type) | 
| void | increment(T type,
         long processingTimeUs) | 
| GenericEventTypeMetrics | registerMetrics() | 
public GenericEventTypeMetrics registerMetrics()
public void increment(T type, long processingTimeUs)
increment in interface EventTypeMetrics<T extends Enum<T>>public long getTotalProcessingTime(T type)
public EnumMap<T,org.apache.hadoop.metrics2.lib.MutableGaugeLong> getEventCountMetrics()
public EnumMap<T,org.apache.hadoop.metrics2.lib.MutableGaugeLong> getProcessingTimeMetrics()
public org.apache.hadoop.metrics2.lib.MetricsRegistry getRegistry()
public org.apache.hadoop.metrics2.MetricsInfo getInfo()
public void getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector,
                       boolean all)
getMetrics in interface org.apache.hadoop.metrics2.MetricsSourceCopyright © 2008–2023 Apache Software Foundation. All rights reserved.