public class HadoopMetricsContext extends java.lang.Object implements FileIOMetricsContext
MetricsContext.Counter<T extends java.lang.Number>, MetricsContext.Unit| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SCHEME |
READ_BYTES, READ_OPERATIONS, WRITE_BYTES, WRITE_OPERATIONS| Constructor and Description |
|---|
HadoopMetricsContext(java.lang.String scheme) |
| Modifier and Type | Method and Description |
|---|---|
<T extends java.lang.Number> |
counter(java.lang.String name,
java.lang.Class<T> type,
MetricsContext.Unit unit)
The Hadoop implementation delegates to the FileSystem.Statistics implementation and therefore
does not require support for operations like unit() and count() as the counter values are not
directly consumed.
|
Counter |
counter(java.lang.String name,
MetricsContext.Unit unit)
The Hadoop implementation delegates to the FileSystem.Statistics implementation and therefore
does not require support for operations like unit() as the counter values are not directly
consumed.
|
void |
initialize(java.util.Map<java.lang.String,java.lang.String> properties) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcounter, histogram, nullMetrics, timerpublic static final java.lang.String SCHEME
public void initialize(java.util.Map<java.lang.String,java.lang.String> properties)
initialize in interface MetricsContextpublic <T extends java.lang.Number> MetricsContext.Counter<T> counter(java.lang.String name, java.lang.Class<T> type, MetricsContext.Unit unit)
counter in interface MetricsContextT - Counter numeric typename - name of the metrictype - numeric type of the counter valueunit - ignoredpublic Counter counter(java.lang.String name, MetricsContext.Unit unit)
counter in interface MetricsContextname - name of the metricunit - ignored