org.apache.hadoop.metrics2
usage.@Deprecated @InterfaceAudience.Public @InterfaceStability.Evolving public class NoEmitMetricsContext extends AbstractMetricsContext
MetricsServlet
, but
not emit metrics in any other way.AbstractMetricsContext.MetricMap, AbstractMetricsContext.TagMap
DEFAULT_PERIOD
构造器和说明 |
---|
NoEmitMetricsContext()
已过时。
Creates a new instance of NullContextWithUpdateThread
|
限定符和类型 | 方法和说明 |
---|---|
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)
AbstractMetricsContext
init
在接口中 MetricsContext
init
在类中 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
在类中 AbstractMetricsContext
Copyright © 2009 The Apache Software Foundation