|
||||||||||
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.ganglia.GangliaContext
public class GangliaContext
Context for sending metrics to Ganglia.
Field Summary |
---|
Fields inherited from interface org.apache.hadoop.metrics.MetricsContext |
---|
DEFAULT_PERIOD |
Constructor Summary | |
---|---|
GangliaContext()
Creates a new instance of GangliaContext |
Method Summary | |
---|---|
void |
emitRecord(java.lang.String contextName,
java.lang.String recordName,
OutputRecord outRec)
Sends a record to the metrics system. |
void |
init(java.lang.String contextName,
ContextFactory factory)
Initializes the context. |
Methods inherited from class org.apache.hadoop.metrics.spi.AbstractMetricsContext |
---|
close, createRecord, flush, getAttribute, getAttributeTable, getContextFactory, getContextName, getPeriod, isMonitoring, newRecord, 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 |
Constructor Detail |
---|
public GangliaContext()
Method Detail |
---|
public void init(java.lang.String contextName, ContextFactory factory)
AbstractMetricsContext
init
in interface MetricsContext
init
in class AbstractMetricsContext
contextName
- The given name for this contextfactory
- The creator of this contextpublic void emitRecord(java.lang.String contextName, java.lang.String recordName, OutputRecord outRec) throws java.io.IOException
AbstractMetricsContext
emitRecord
in class AbstractMetricsContext
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |