org.apache.hadoop.metrics.spi
Class NoEmitMetricsContext
java.lang.Object
org.apache.hadoop.metrics.spi.AbstractMetricsContext
org.apache.hadoop.metrics.spi.NoEmitMetricsContext
- All Implemented Interfaces:
- MetricsContext
Deprecated. in favor of org.apache.hadoop.metrics2 usage.
@Deprecated
@InterfaceAudience.Public
@InterfaceStability.Evolving
public class NoEmitMetricsContext
- extends AbstractMetricsContext
A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
does save it for retrieval with getAllRecords().
This is useful if you want to support MetricsServlet, but
not emit metrics in any other way.
|
Constructor Summary |
NoEmitMetricsContext()
Deprecated. Creates a new instance of NullContextWithUpdateThread |
| Methods inherited from class org.apache.hadoop.metrics.spi.AbstractMetricsContext |
close, createRecord, flush, getAllRecords, getAttribute, getAttributeTable, getContextFactory, getContextName, getPeriod, isMonitoring, newRecord, parseAndSetPeriod, registerUpdater, remove, setPeriod, startMonitoring, stopMonitoring, unregisterUpdater, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoEmitMetricsContext
@InterfaceAudience.Private
public NoEmitMetricsContext()
- Deprecated.
- Creates a new instance of NullContextWithUpdateThread
init
@InterfaceAudience.Private
public void init(String contextName,
ContextFactory factory)
- Deprecated.
- Description copied from class:
AbstractMetricsContext
- Initializes the context.
- Specified by:
init in interface MetricsContext- Overrides:
init in class AbstractMetricsContext
- Parameters:
contextName - The given name for this contextfactory - The creator of this context
emitRecord
@InterfaceAudience.Private
protected void emitRecord(String contextName,
String recordName,
OutputRecord outRec)
- Deprecated.
- Do-nothing version of emitRecord
- Specified by:
emitRecord in class AbstractMetricsContext
Copyright © 2009 The Apache Software Foundation