public class Log4JMetricsContext extends AbstractMetricsContext
| Constructor and Description |
|---|
Log4JMetricsContext()
Creates a new instance of MetricsContext
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Collection<org.apache.hadoop.metrics.spi.OutputRecord>> |
getAllRecords() |
void |
init(String contextName,
org.apache.hadoop.metrics.ContextFactory factory)
Initializes the context.
|
close, createRecord, getContextFactory, getContextName, getPeriod, isMonitoring, registerUpdater, startMonitoring, stopMonitoring, unregisterUpdaterpublic Log4JMetricsContext()
public void init(String contextName, org.apache.hadoop.metrics.ContextFactory factory)
AbstractMetricsContextinit in interface org.apache.hadoop.metrics.MetricsContextinit in class AbstractMetricsContextpublic Map<String,Collection<org.apache.hadoop.metrics.spi.OutputRecord>> getAllRecords()
Copyright © 2016 Apache Software Foundation. All Rights Reserved.