|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.metrics.spi.AbstractMetricsContext org.apache.hadoop.metrics.ganglia.GangliaContext
org.apache.hadoop.metrics2
usage.
@Deprecated @InterfaceAudience.Public @InterfaceStability.Evolving public class GangliaContext
Context for sending metrics to Ganglia.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.hadoop.metrics.spi.AbstractMetricsContext |
---|
AbstractMetricsContext.MetricMap, AbstractMetricsContext.TagMap |
Field Summary | |
---|---|
protected byte[] |
buffer
Deprecated. |
protected DatagramSocket |
datagramSocket
Deprecated. |
protected List<? extends SocketAddress> |
metricsServers
Deprecated. |
protected int |
offset
Deprecated. |
Fields inherited from interface org.apache.hadoop.metrics.MetricsContext |
---|
DEFAULT_PERIOD |
Constructor Summary | |
---|---|
GangliaContext()
Deprecated. Creates a new instance of GangliaContext |
Method Summary | |
---|---|
protected void |
emitMetric(String name,
String type,
String value)
Deprecated. |
void |
emitRecord(String contextName,
String recordName,
OutputRecord outRec)
Deprecated. Sends a record to the metrics system. |
protected int |
getDmax(String metricName)
Deprecated. |
protected int |
getSlope(String metricName)
Deprecated. |
protected int |
getTmax(String metricName)
Deprecated. |
protected String |
getUnits(String metricName)
Deprecated. |
void |
init(String contextName,
ContextFactory factory)
Deprecated. Initializes the context. |
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. |
Methods inherited from class org.apache.hadoop.metrics.spi.AbstractMetricsContext |
---|
close, createRecord, flush, getAllRecords, getAttribute, getAttributeTable, getContextFactory, getContextName, getPeriod, isMonitoring, newRecord, parseAndSetPeriod, registerUpdater, remove, setPeriod, startMonitoring, stopMonitoring, unregisterUpdater, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected byte[] buffer
protected int offset
protected List<? extends SocketAddress> metricsServers
protected DatagramSocket datagramSocket
Constructor Detail |
---|
@InterfaceAudience.Private public GangliaContext()
Method Detail |
---|
@InterfaceAudience.Private public void init(String contextName, ContextFactory factory)
AbstractMetricsContext
init
in interface MetricsContext
init
in class 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
in class AbstractMetricsContext
IOException
protected void emitMetric(String name, String type, String value) throws IOException
IOException
protected String getUnits(String metricName)
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |