|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.reservoir.monitoring.distribution.MeasurementDecoder
public class MeasurementDecoder
Convert to a byte array to a measurement.
Constructor Summary | |
---|---|
MeasurementDecoder()
Construct a MeasurementDecoder. |
Method Summary | |
---|---|
Measurement |
decode(java.io.DataInput in)
Decode the Measurement from a DataOutput object. |
protected ProbeAttributeType |
decodeType()
Decode a type |
protected java.lang.Object |
decodeValue(ProbeAttributeType type)
Decode a value |
protected int |
readInt()
Read an Integer from the input. |
protected MList |
readList()
Read a list from the input. |
protected Table |
readTable()
Read a table from the input. |
protected java.lang.String |
readUTF()
Read a UTF strinh from the input. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MeasurementDecoder()
Method Detail |
---|
public Measurement decode(java.io.DataInput in) throws java.io.IOException, TypeException
+------------------------------------------------------------------------+ | seq no (long) | options (byte) [bit 0 : 0 = no names / 1 = with names] | +------------------------------------------------------------------------+ | probe id (long) | type (utf string) | timestamp (long) | +------------------------------------------------------------------------+ | time delta (long) | service id (long) | group id (long) | attr count | +------------------------------------------------------------------------+ | attr0 field no (int) | attr0 type (byte) | attr0 value (depends) | +------------------------------------------------------------------------+ | .... | +------------------------------------------------------------------------+ | attrN field no (int) | attrN type (byte) | attrN value (depends) | +------------------------------------------------------------------------+
java.io.IOException
TypeException
protected ProbeAttributeType decodeType() throws java.io.IOException, TypeException
java.io.IOException
TypeException
protected java.lang.Object decodeValue(ProbeAttributeType type) throws java.io.IOException, TypeException
java.io.IOException
TypeException
protected int readInt() throws java.io.IOException
java.io.IOException
protected java.lang.String readUTF() throws java.io.IOException
java.io.IOException
protected Table readTable() throws java.io.IOException, TypeException
java.io.IOException
TypeException
protected MList readList() throws java.io.IOException, TypeException
java.io.IOException
TypeException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |