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().


Constructor Index

 o Hot_ObjectMessage()
 o Hot_ObjectMessage(byte[])
Interprets the bytes as a serialized object
 o 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.
 o Hot_ObjectMessage(Object)

Method Index

 o getBytes()
Serializes the contained object into a byte array
 o getObject()
Get the contained Object
 o setBytes(byte[])
Interprets the bytes as a serialized object and sets the contained reference to the unserialized version of the serialized object
 o setObject(Object)
Set the contained Object

Constructors

 o Hot_ObjectMessage
 public Hot_ObjectMessage()
 o Hot_ObjectMessage
 public Hot_ObjectMessage(Object o)
 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.

 o Hot_ObjectMessage
 public Hot_ObjectMessage(byte b[])
Interprets the bytes as a serialized object

Methods

 o getObject
 public Object getObject()
Get the contained Object

 o setObject
 public void setObject(Object o)
Set the contained Object

 o getBytes
 public byte[] getBytes()
Serializes the contained object into a byte array

Overrides:
getBytes in class Hot_Buffer
 o 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