org.apache.hadoop.metrics.ganglia
Class GangliaContext
java.lang.Object
org.apache.hadoop.metrics.spi.AbstractMetricsContext
org.apache.hadoop.metrics.ganglia.GangliaContext
- All Implemented Interfaces:
- MetricsContext
public class GangliaContext
- extends AbstractMetricsContext
Context for sending metrics to Ganglia.
Constructor Summary |
GangliaContext()
Creates a new instance of GangliaContext |
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 |
GangliaContext
public GangliaContext()
- Creates a new instance of GangliaContext
init
public void init(String contextName,
ContextFactory factory)
- Description copied from class:
AbstractMetricsContext
- Initializes the context.
- Overrides:
init
in class AbstractMetricsContext
emitRecord
public void emitRecord(String contextName,
String recordName,
OutputRecord outRec)
throws IOException
- Description copied from class:
AbstractMetricsContext
- Sends a record to the metrics system.
- Specified by:
emitRecord
in class AbstractMetricsContext
- Throws:
IOException
Copyright © 2008 The Apache Software Foundation