org.apache.hadoop.metrics.ganglia
Class GangliaContext31
java.lang.Object
   org.apache.hadoop.metrics.spi.AbstractMetricsContext
org.apache.hadoop.metrics.spi.AbstractMetricsContext
       org.apache.hadoop.metrics.ganglia.GangliaContext
org.apache.hadoop.metrics.ganglia.GangliaContext
           org.apache.hadoop.metrics.ganglia.GangliaContext31
org.apache.hadoop.metrics.ganglia.GangliaContext31
- All Implemented Interfaces: 
- MetricsContext
- public class GangliaContext31 
- extends GangliaContext
Context for sending metrics to Ganglia version 3.1.x.
 
 3.1.1 has a slightly different wire portal compared to 3.0.x.
 
 
 
 
 
 
 
 
| 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 | 
 
GangliaContext31
public GangliaContext31()
init
public void init(String contextName,
                 ContextFactory factory)
- Description copied from class: AbstractMetricsContext
- Initializes the context.
 
- 
- Specified by:
- initin interface- MetricsContext
- Overrides:
- initin class- GangliaContext
 
- 
- Parameters:
- contextName- The given name for this context
- factory- The creator of this context
 
emitMetric
protected void emitMetric(String name,
                          String type,
                          String value)
                   throws IOException
- 
- Overrides:
- emitMetricin class- GangliaContext
 
- 
- Throws:
- IOException
 
Copyright © 2009 The Apache Software Foundation