public class NullContextWithUpdateThread extends AbstractMetricsContext
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, getAttribute, getAttributeTable, getContextFactory, getContextName, getPeriod, isMonitoring, newRecord, registerUpdater, setPeriod, startMonitoring, stopMonitoring, unregisterUpdater
public NullContextWithUpdateThread()
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 contextprotected 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