|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.metrics.spi.AbstractMetricsContext
org.apache.hadoop.metrics.spi.CompositeContext
org.apache.hadoop.metrics2 usage.
@Deprecated @InterfaceAudience.Public @InterfaceStability.Evolving public class CompositeContext
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.hadoop.metrics.spi.AbstractMetricsContext |
|---|
AbstractMetricsContext.MetricMap, AbstractMetricsContext.TagMap |
| Field Summary |
|---|
| Fields inherited from interface org.apache.hadoop.metrics.MetricsContext |
|---|
DEFAULT_PERIOD |
| Constructor Summary | |
|---|---|
CompositeContext()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
close()
Deprecated. Stops monitoring and frees buffered data, returning this object to its initial state. |
protected void |
emitRecord(String contextName,
String recordName,
OutputRecord outRec)
Deprecated. Sends a record to the metrics system. |
protected void |
flush()
Deprecated. Called each period after all records have been emitted, this method does nothing. |
void |
init(String contextName,
ContextFactory factory)
Deprecated. Initializes the context. |
boolean |
isMonitoring()
Deprecated. Return true if all subcontexts are monitoring. |
MetricsRecord |
newRecord(String recordName)
Deprecated. Subclasses should override this if they subclass MetricsRecordImpl. |
void |
registerUpdater(Updater updater)
Deprecated. Registers a callback to be called at time intervals determined by the configuration. |
void |
startMonitoring()
Deprecated. Starts or restarts monitoring, the emitting of metrics records. |
void |
stopMonitoring()
Deprecated. Stops monitoring. |
void |
unregisterUpdater(Updater updater)
Deprecated. Removes a callback, if it exists. |
| Methods inherited from class org.apache.hadoop.metrics.spi.AbstractMetricsContext |
|---|
createRecord, getAllRecords, getAttribute, getAttributeTable, getContextFactory, getContextName, getPeriod, parseAndSetPeriod, remove, setPeriod, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@InterfaceAudience.Private public CompositeContext()
| Method Detail |
|---|
@InterfaceAudience.Private
public void init(String contextName,
ContextFactory factory)
AbstractMetricsContext
init in interface MetricsContextinit in class AbstractMetricsContextcontextName - The given name for this contextfactory - The creator of this context@InterfaceAudience.Private public MetricsRecord newRecord(String recordName)
AbstractMetricsContext
newRecord in class AbstractMetricsContextrecordName - the name of the record
@InterfaceAudience.Private
protected void emitRecord(String contextName,
String recordName,
OutputRecord outRec)
throws IOException
AbstractMetricsContext
emitRecord in class AbstractMetricsContextIOException
@InterfaceAudience.Private
protected void flush()
throws IOException
AbstractMetricsContext
flush in class AbstractMetricsContextIOException
@InterfaceAudience.Private
public void startMonitoring()
throws IOException
AbstractMetricsContext
startMonitoring in interface MetricsContextstartMonitoring in class AbstractMetricsContextIOException@InterfaceAudience.Private public void stopMonitoring()
AbstractMetricsContext
stopMonitoring in interface MetricsContextstopMonitoring in class AbstractMetricsContextAbstractMetricsContext.close()@InterfaceAudience.Private public boolean isMonitoring()
isMonitoring in interface MetricsContextisMonitoring in class AbstractMetricsContext@InterfaceAudience.Private public void close()
AbstractMetricsContext
close in interface MetricsContextclose in class AbstractMetricsContext@InterfaceAudience.Private public void registerUpdater(Updater updater)
AbstractMetricsContext
registerUpdater in interface MetricsContextregisterUpdater in class AbstractMetricsContextupdater - object to be run periodically; it should update
some metrics records@InterfaceAudience.Private public void unregisterUpdater(Updater updater)
AbstractMetricsContext
unregisterUpdater in interface MetricsContextunregisterUpdater in class AbstractMetricsContextupdater - object to be removed from the callback list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||