public class GangliaSink30 extends AbstractGangliaSink
AbstractGangliaSink.GangliaConfType, AbstractGangliaSink.GangliaSlope
限定符和类型 | 字段和说明 |
---|---|
org.apache.commons.logging.Log |
LOG |
protected MetricsCache |
metricsCache |
BUFFER_SIZE, DEFAULT_DMAX, DEFAULT_PORT, DEFAULT_SLOPE, DEFAULT_TMAX, DEFAULT_UNITS, EQUAL, gangliaMetricVisitor, SERVERS_PROPERTY, SUPPORT_SPARSE_METRICS_DEFAULT, SUPPORT_SPARSE_METRICS_PROPERTY
构造器和说明 |
---|
GangliaSink30() |
限定符和类型 | 方法和说明 |
---|---|
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 |
putMetrics(MetricsRecord record)
Put a metrics record in the sink
|
emitToGangliaHosts, flush, getGangliaConfForMetric, getHostName, init, isSupportSparseMetrics, xdr_int, xdr_string
public final org.apache.commons.logging.Log LOG
protected MetricsCache metricsCache
public 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 © 2009 The Apache Software Foundation