org.apache.hadoop.metrics.ganglia
Class GangliaContext

java.lang.Object
  extended by org.apache.hadoop.metrics.spi.AbstractMetricsContext
      extended by org.apache.hadoop.metrics.ganglia.GangliaContext
All Implemented Interfaces:
MetricsContext

public class GangliaContext
extends AbstractMetricsContext

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(String contextName, String recordName, OutputRecord outRec)
          Sends a record to the metrics system.
 void init(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

GangliaContext

public GangliaContext()
Creates a new instance of GangliaContext

Method Detail

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