public class TimeStampingFileContext
extends org.apache.hadoop.metrics.file.FileContext
FileContext.emitRecord(String, String, OutputRecord)
.Constructor and Description |
---|
TimeStampingFileContext() |
Modifier and Type | Method and Description |
---|---|
void |
emitRecord(String contextName,
String recordName,
org.apache.hadoop.metrics.spi.OutputRecord outRec) |
void |
flush() |
void |
init(String contextName,
org.apache.hadoop.metrics.ContextFactory factory) |
void |
startMonitoring() |
void |
stopMonitoring() |
close, createRecord, getAllRecords, getAttribute, getAttributeTable, getContextFactory, getContextName, getPeriod, isMonitoring, newRecord, parseAndSetPeriod, registerUpdater, remove, setPeriod, unregisterUpdater, update
public void init(String contextName, org.apache.hadoop.metrics.ContextFactory factory)
init
in interface org.apache.hadoop.metrics.MetricsContext
init
in class org.apache.hadoop.metrics.file.FileContext
public void startMonitoring() throws IOException
startMonitoring
in interface org.apache.hadoop.metrics.MetricsContext
startMonitoring
in class org.apache.hadoop.metrics.file.FileContext
IOException
public void stopMonitoring()
stopMonitoring
in interface org.apache.hadoop.metrics.MetricsContext
stopMonitoring
in class org.apache.hadoop.metrics.file.FileContext
public void emitRecord(String contextName, String recordName, org.apache.hadoop.metrics.spi.OutputRecord outRec)
emitRecord
in class org.apache.hadoop.metrics.file.FileContext
public void flush()
flush
in class org.apache.hadoop.metrics.file.FileContext
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.