@InterfaceAudience.Public @InterfaceStability.Evolving public class NullContext extends AbstractMetricsContext
AbstractMetricsContext.MetricMap, AbstractMetricsContext.TagMapDEFAULT_PERIOD| Constructor and Description |
|---|
NullContext()
Creates a new instance of NullContext
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
emitRecord(String contextName,
String recordName,
OutputRecord outRec)
Do-nothing version of emitRecord
|
protected void |
remove(MetricsRecordImpl record)
Do-nothing version of remove
|
void |
startMonitoring()
Do-nothing version of startMonitoring
|
protected void |
update(MetricsRecordImpl record)
Do-nothing version of update
|
close, createRecord, flush, getAllRecords, getAttribute, getAttributeTable, getContextFactory, getContextName, getPeriod, init, isMonitoring, newRecord, parseAndSetPeriod, registerUpdater, setPeriod, stopMonitoring, unregisterUpdater@InterfaceAudience.Private public NullContext()
@InterfaceAudience.Private public void startMonitoring()
startMonitoring in interface MetricsContextstartMonitoring in class AbstractMetricsContext@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 AbstractMetricsContextCopyright © 2013 Apache Software Foundation. All rights reserved.