All Packages Class Hierarchy This Package Previous Next Index
Class JavaGroups.Ensemble.Hot_ObjectMessage
java.lang.Object
|
+----JavaGroups.Ensemble.Hot_Buffer
|
+----JavaGroups.Ensemble.Hot_Message
|
+----JavaGroups.Ensemble.Hot_ObjectMessage
- public class Hot_ObjectMessage
- extends Hot_Message
This HOT Message class is a mechanism to transmit Java objects over ensemble.
It makes use of the Java serialization mechanism. That being said, the usual
rules about an Object being serializable apply (see the Java docs for more
information here).
To send an Object over ensemble, just create a Hot_ObjectMessage with the
Serializable object, and call the usual Send or Cast.
When your ReceiveCast/Send upcall hands you a Hot_Message reference, you
create a new Hot_ObjectMessage from that reference, and then do a getObject().
-
Hot_ObjectMessage()
-
-
Hot_ObjectMessage(byte[])
- Interprets the bytes as a serialized object
-
Hot_ObjectMessage(Hot_Message)
- Takes the bytes contained within a Hot_Message object
(usually gotten from a standard ReceiveCast/Send upcall)
and interprets them as a serialized object.
-
Hot_ObjectMessage(Object)
-
-
getBytes()
- Serializes the contained object into a byte array
-
getObject()
- Get the contained Object
-
setBytes(byte[])
- Interprets the bytes as a serialized object and sets the contained reference
to the unserialized version of the serialized object
-
setObject(Object)
- Set the contained Object
Hot_ObjectMessage
public Hot_ObjectMessage()
Hot_ObjectMessage
public Hot_ObjectMessage(Object o)
Hot_ObjectMessage
public Hot_ObjectMessage(Hot_Message msg)
- Takes the bytes contained within a Hot_Message object
(usually gotten from a standard ReceiveCast/Send upcall)
and interprets them as a serialized object.
Hot_ObjectMessage
public Hot_ObjectMessage(byte b[])
- Interprets the bytes as a serialized object
getObject
public Object getObject()
- Get the contained Object
setObject
public void setObject(Object o)
- Set the contained Object
getBytes
public byte[] getBytes()
- Serializes the contained object into a byte array
- Overrides:
- getBytes in class Hot_Buffer
setBytes
public void setBytes(byte b[])
- Interprets the bytes as a serialized object and sets the contained reference
to the unserialized version of the serialized object
- Overrides:
- setBytes in class Hot_Buffer
All Packages Class Hierarchy This Package Previous Next Index