org.apache.hadoop.metrics2
usage.@Deprecated @InterfaceAudience.Public @InterfaceStability.Evolving public class GangliaContext extends AbstractMetricsContext
AbstractMetricsContext.MetricMap, AbstractMetricsContext.TagMap
限定符和类型 | 字段和说明 |
---|---|
protected byte[] |
buffer
已过时。
|
protected DatagramSocket |
datagramSocket
已过时。
|
protected List<? extends SocketAddress> |
metricsServers
已过时。
|
protected int |
offset
已过时。
|
DEFAULT_PERIOD
构造器和说明 |
---|
GangliaContext()
已过时。
Creates a new instance of GangliaContext
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
emitMetric(String name,
String type,
String value)
已过时。
|
void |
emitRecord(String contextName,
String recordName,
OutputRecord outRec)
已过时。
Sends a record to the metrics system.
|
protected int |
getDmax(String metricName)
已过时。
|
protected int |
getSlope(String metricName)
已过时。
|
protected int |
getTmax(String metricName)
已过时。
|
protected String |
getUnits(String metricName)
已过时。
|
void |
init(String contextName,
ContextFactory factory)
已过时。
Initializes the context.
|
protected void |
xdr_int(int i)
已过时。
Puts an integer into the buffer as 4 bytes, big-endian.
|
protected void |
xdr_string(String s)
已过时。
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.
|
close, createRecord, flush, getAllRecords, getAttribute, getAttributeTable, getContextFactory, getContextName, getPeriod, isMonitoring, newRecord, parseAndSetPeriod, registerUpdater, remove, setPeriod, startMonitoring, stopMonitoring, unregisterUpdater, update
protected byte[] buffer
protected int offset
protected List<? extends SocketAddress> metricsServers
protected DatagramSocket datagramSocket
@InterfaceAudience.Private public GangliaContext()
@InterfaceAudience.Private public void init(String contextName, ContextFactory factory)
AbstractMetricsContext
init
在接口中 MetricsContext
init
在类中 AbstractMetricsContext
contextName
- The given name for this contextfactory
- The creator of this context@InterfaceAudience.Private public void emitRecord(String contextName, String recordName, OutputRecord outRec) throws IOException
AbstractMetricsContext
emitRecord
在类中 AbstractMetricsContext
IOException
protected void emitMetric(String name, String type, String value) throws IOException
IOException
protected 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 © 2009 The Apache Software Foundation