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, unregisterUpdater
public Log4JMetricsContext()
public void init(String contextName, org.apache.hadoop.metrics.ContextFactory factory)
AbstractMetricsContext
init
in interface org.apache.hadoop.metrics.MetricsContext
init
in class AbstractMetricsContext
public Map<String,Collection<org.apache.hadoop.metrics.spi.OutputRecord>> getAllRecords()
Copyright © 2016 Apache Software Foundation. All Rights Reserved.