@InterfaceAudience.Public @InterfaceStability.Evolving public class NullContextWithUpdateThread extends AbstractMetricsContext
AbstractMetricsContext.MetricMap, AbstractMetricsContext.TagMap
DEFAULT_PERIOD
Constructor and Description |
---|
NullContextWithUpdateThread()
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.
|
protected void |
remove(MetricsRecordImpl record)
Do-nothing version of remove
|
protected void |
update(MetricsRecordImpl record)
Do-nothing version of update
|
close, createRecord, flush, getAllRecords, getAttribute, getAttributeTable, getContextFactory, getContextName, getPeriod, isMonitoring, newRecord, parseAndSetPeriod, registerUpdater, setPeriod, startMonitoring, stopMonitoring, unregisterUpdater
@InterfaceAudience.Private public NullContextWithUpdateThread()
@InterfaceAudience.Private public void init(String contextName, ContextFactory factory)
AbstractMetricsContext
init
in interface MetricsContext
init
in class AbstractMetricsContext
contextName
- 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 AbstractMetricsContext
@InterfaceAudience.Private protected void update(MetricsRecordImpl record)
update
in class AbstractMetricsContext
@InterfaceAudience.Private protected void remove(MetricsRecordImpl record)
remove
in class AbstractMetricsContext
Copyright © 2013 Apache Software Foundation. All rights reserved.