GangliaSink30
 instead.@Deprecated @InterfaceAudience.Public @InterfaceStability.Evolving public class GangliaContext extends AbstractMetricsContext
| Modifier and Type | Field and Description | 
|---|---|
| protected byte[] | bufferDeprecated.  | 
| protected DatagramSocket | datagramSocketDeprecated.  | 
| protected List<? extends SocketAddress> | metricsServersDeprecated.  | 
| protected int | offsetDeprecated.  | 
| Constructor and Description | 
|---|
| GangliaContext()Deprecated.  Creates a new instance of GangliaContext | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Deprecated.  method to close the datagram socket | 
| protected void | emitMetric(String name,
          String type,
          String value)Deprecated.  | 
| protected int | getDmax(String metricName)Deprecated.  | 
| protected int | getSlope(String metricName)Deprecated.  | 
| protected int | getTmax(String metricName)Deprecated.  | 
| protected String | getUnits(String metricName)Deprecated.  | 
| protected void | xdr_int(int i)Deprecated.  Puts an integer into the buffer as 4 bytes, big-endian. | 
| protected void | xdr_string(String s)Deprecated.  Puts a string into the buffer by first writing the size of the string
 as an int, followed by the bytes of the string, padded if necessary to
 a multiple of 4. | 
createRecord, emitRecord, flush, getAllRecords, getAttribute, getAttributeTable, getContextFactory, getContextName, getPeriod, init, isMonitoring, newRecord, parseAndSetPeriod, registerUpdater, remove, setPeriod, startMonitoring, stopMonitoring, unregisterUpdater, updateprotected byte[] buffer
protected int offset
protected List<? extends SocketAddress> metricsServers
protected DatagramSocket datagramSocket
@InterfaceAudience.Private public GangliaContext()
public void close()
close in interface org.apache.hadoop.metrics.MetricsContextclose in class AbstractMetricsContextprotected void emitMetric(String name, String type, String value) throws IOException
IOExceptionprotected int getSlope(String metricName)
protected int getTmax(String metricName)
protected int getDmax(String metricName)
protected void xdr_string(String s)
protected void xdr_int(int i)
Copyright © 2017 Apache Software Foundation. All Rights Reserved.