public class NullContext extends AbstractMetricsContext
DEFAULT_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, getAttribute, getAttributeTable, getContextFactory, getContextName, getPeriod, init, isMonitoring, newRecord, registerUpdater, setPeriod, stopMonitoring, unregisterUpdater
public void startMonitoring()
startMonitoring
in interface MetricsContext
startMonitoring
in class AbstractMetricsContext
protected void emitRecord(String contextName, String recordName, OutputRecord outRec)
emitRecord
in class AbstractMetricsContext
protected void update(MetricsRecordImpl record)
update
in class AbstractMetricsContext
protected void remove(MetricsRecordImpl record)
remove
in class AbstractMetricsContext
Copyright © 2010 The Apache Software Foundation