@InterfaceAudience.Public @InterfaceStability.Evolving public class NoEmitMetricsContext extends AbstractMetricsContext
MetricsServlet, but
not emit metrics in any other way.AbstractMetricsContext.MetricMap, AbstractMetricsContext.TagMapDEFAULT_PERIOD| Constructor and Description |
|---|
NoEmitMetricsContext()
Creates a new instance of NullContextWithUpdateThread
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
emitRecord(String contextName,
String recordName,
OutputRecord outRec)
Do-nothing version of emitRecord
|
void |
init(String contextName,
ContextFactory factory)
Initializes the context.
|
close, createRecord, flush, getAllRecords, getAttribute, getAttributeTable, getContextFactory, getContextName, getPeriod, isMonitoring, newRecord, parseAndSetPeriod, registerUpdater, remove, setPeriod, startMonitoring, stopMonitoring, unregisterUpdater, update@InterfaceAudience.Private public NoEmitMetricsContext()
@InterfaceAudience.Private public void init(String contextName, ContextFactory factory)
AbstractMetricsContextinit in interface MetricsContextinit in class AbstractMetricsContextcontextName - The given name for this contextfactory - The creator of this context@InterfaceAudience.Private protected void emitRecord(String contextName, String recordName, OutputRecord outRec)
emitRecord in class AbstractMetricsContextCopyright © 2013 Apache Software Foundation. All rights reserved.