public class GangliaSink30 extends AbstractGangliaSink
AbstractGangliaSink.GangliaConfType, AbstractGangliaSink.GangliaSlope| Modifier and Type | Field and Description | 
|---|---|
org.slf4j.Logger | 
LOG  | 
BUFFER_SIZE, DEFAULT_DMAX, DEFAULT_MULTICAST_ENABLED, DEFAULT_MULTICAST_TTL, DEFAULT_PORT, DEFAULT_SLOPE, DEFAULT_TMAX, DEFAULT_UNITS, EQUAL, gangliaMetricVisitor, MULTICAST_ENABLED_PROPERTY, MULTICAST_TTL_PROPERTY, SERVERS_PROPERTY, SUPPORT_SPARSE_METRICS_DEFAULT, SUPPORT_SPARSE_METRICS_PROPERTY| Constructor and Description | 
|---|
GangliaSink30()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
emitMetric(String groupName,
          String name,
          String type,
          String value,
          org.apache.hadoop.metrics2.sink.ganglia.GangliaConf gConf,
          AbstractGangliaSink.GangliaSlope gSlope)
The method sends metrics to Ganglia servers. 
 | 
void | 
init(org.apache.commons.configuration.SubsetConfiguration conf)
Initialize the plugin 
 | 
void | 
putMetrics(MetricsRecord record)
Put a metrics record in the sink 
 | 
emitToGangliaHosts, flush, getGangliaConfForMetric, getHostName, isSupportSparseMetrics, xdr_int, xdr_stringpublic void init(org.apache.commons.configuration.SubsetConfiguration conf)
MetricsPlugininit in interface MetricsPlugininit in class AbstractGangliaSinkconf - the configuration object for the pluginpublic void putMetrics(MetricsRecord record)
MetricsSinkrecord - the record to putprotected void emitMetric(String groupName, String name, String type, String value, org.apache.hadoop.metrics2.sink.ganglia.GangliaConf gConf, AbstractGangliaSink.GangliaSlope gSlope) throws IOException
groupName - The group name of the metricname - The metric nametype - The type of the metricvalue - The value of the metricgConf - The GangliaConf for this metricgSlope - The slope for this metricIOExceptionCopyright © 2018 Apache Software Foundation. All Rights Reserved.