public class Log4JMetricsContext extends AbstractMetricsContext
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ADD_UUID_PROPERTY |
protected boolean |
needUUID |
protected static String |
OUTPUT_DIR_PROPERTY |
protected String |
outputDir |
protected int |
period |
protected static String |
PERIOD_PROPERTY |
protected static String |
user |
| Constructor and Description |
|---|
Log4JMetricsContext()
Creates a new instance of FileContext
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
emitRecord(String contextName,
String recordName,
org.apache.hadoop.metrics.spi.OutputRecord outRec)
Sends a record to the metrics system.
|
void |
init(String contextName,
org.apache.hadoop.metrics.ContextFactory factory)
Initializes the context.
|
close, createRecord, flush, getAttribute, getAttributeTable, getContextFactory, getContextName, getPeriod, isMonitoring, newRecord, registerUpdater, remove, setPeriod, startMonitoring, stopMonitoring, unregisterUpdater, updateprotected static final String OUTPUT_DIR_PROPERTY
protected static final String PERIOD_PROPERTY
protected static final String ADD_UUID_PROPERTY
protected static final String user
protected String outputDir
protected int period
protected boolean needUUID
public Log4JMetricsContext()
public void init(String contextName, org.apache.hadoop.metrics.ContextFactory factory)
AbstractMetricsContextinit in interface org.apache.hadoop.metrics.MetricsContextinit in class AbstractMetricsContextprotected void emitRecord(String contextName, String recordName, org.apache.hadoop.metrics.spi.OutputRecord outRec) throws IOException
AbstractMetricsContextemitRecord in class AbstractMetricsContextIOExceptionCopyright © ${year} The Apache Software Foundation