|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--solar.impl.AbstractAttributeRecord | +--solar.impl.SerializedEvent
SerializedEvent containts attributes whose value are arbituary objects and will be serialized into byte array before transmission.
Field Summary |
Fields inherited from class solar.impl.AbstractAttributeRecord |
_attributes |
Fields inherited from interface solar.api.Event |
EVENT_PLAIN, EVENT_SERIALIZED |
Fields inherited from interface solar.SolarConstants |
ADVERTISEMENT_SVID, ATTRIBUTE_RECORD_SVID, ATTRIBUTE_SVID, FILTER_CONFIG_SVID, FILTER_SPEC_SVID, GRAPH_SPEC_SVID, GUID_SVID, HEADER_SVID, ID_SVID, NAME_RECORD_SVID, PACK_POLICY_SVID, PIPE_SPEC_SVID, REQUEST_SVID, RPCACK_SVID |
Constructor Summary | |
SerializedEvent(byte[] cnt)
Constructs an event by parsing an encoded byte array. |
|
SerializedEvent(byte[] cnt,
int offset,
int len)
Constructs an event by parsing an encoded byte array. |
|
SerializedEvent(Event aEvent)
Constructs an event by copying from another one. |
|
SerializedEvent(java.util.List aList)
Constructs an event with a list of attributes. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Determine whether two objects are equal. |
int |
getEncoding()
Return the encoding type. |
private java.util.List |
parseSerializedEvent(byte[] cnt,
int offset,
int len)
|
byte[] |
toBytes()
Return the byte array format of this ADU. |
java.lang.String |
toString()
Return the string format of this ADU. |
Methods inherited from class solar.impl.AbstractAttributeRecord |
getAttribute, getAttributes, getAttributes, getKeys, getValue, getValues, getValues |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface solar.api.AttributeRecord |
getAttribute, getAttributes, getAttributes, getKeys, getValue, getValues, getValues |
Constructor Detail |
public SerializedEvent(java.util.List aList)
public SerializedEvent(Event aEvent)
public SerializedEvent(byte[] cnt) throws ParsingException
public SerializedEvent(byte[] cnt, int offset, int len) throws ParsingException
Method Detail |
private java.util.List parseSerializedEvent(byte[] cnt, int offset, int len) throws ParsingException
ParsingException
public int getEncoding()
Event
getEncoding
in interface Event
public boolean equals(java.lang.Object obj)
AttributeRecord
equals
in interface AttributeRecord
equals
in class java.lang.Object
public java.lang.String toString()
Adu
toString
in interface Adu
toString
in class java.lang.Object
public byte[] toBytes()
Adu
toBytes
in interface Adu
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |