public class GangliaSink30 extends AbstractGangliaSink
AbstractGangliaSink.GangliaConfType, AbstractGangliaSink.GangliaSlope
Modifier and Type | Field and Description |
---|---|
org.apache.commons.logging.Log |
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_string
public final org.apache.commons.logging.Log LOG
public GangliaSink30()
public void init(org.apache.commons.configuration.SubsetConfiguration conf)
MetricsPlugin
init
in interface MetricsPlugin
init
in class AbstractGangliaSink
conf
- the configuration object for the pluginpublic void putMetrics(MetricsRecord record)
MetricsSink
record
- 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 metricIOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.