|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.yammer.metrics.reporting.GangliaMessage
public class GangliaMessage
Encapsulates logic for creating and sending a Ganglia message
| Method Summary | |
|---|---|
GangliaMessage |
addInt(int value)
Puts an integer into the buffer as 4 bytes, big-endian. |
GangliaMessage |
addString(String value)
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. |
void |
send()
Creates and sends a new DatagramPacket |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void send()
throws SocketException,
IOException
DatagramPacket
SocketException
IOExceptionpublic GangliaMessage addInt(int value)
value - the integer to write to the buffer
public GangliaMessage addString(String value)
value - the message to write to the buffer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||