All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JavaGroups.Message

java.lang.Object
   |
   +----JavaGroups.Message

public class Message
extends Object
implements Externalizable

Constructor Index

 o Message()
 o Message(Object, Object, byte[])
Public constructor
 o Message(Object, Object, Object)
Public constructor

Method Index

 o AddHeader(Object)
 o Copy()
 o GetBuffer()
 o GetDest()
 o GetHeaders()
 o GetObject()
 o GetSrc()
 o main(String[])
 o MakeReply()
 o PeekHeader()
 o PrintObjectHeaders()
 o readExternal(ObjectInput)
 o RemoveHeader()
 o RemoveHeaders()
 o SetBuffer(byte[])
 o SetDest(Object)
 o SetHeaders(Stack)
 o SetObject(Object)
 o SetSrc(Object)
 o Size()
Returns size of buffer plus size of all headers plus a fixed overhead (other fields of Message, marshaling code etc.
 o toString()
 o writeExternal(ObjectOutput)

Constructors

 o Message
 public Message(Object dest,
                Object src,
                byte buf[])
Public constructor

Parameters:
dest - Address of receiver. If it is null or a string, then it is sent to the group (either to current group or to the group as given in the string). If it is a Vector, then it contains a number of addresses to which it must be sent. Otherwise, it contains a single destination.

Addresses are generally untyped (all are of type Object. A channel instance must know what types of addresses it expects and downcast accordingly.

src - Address of sender
buf - Message to be sent
 o Message
 public Message(Object dest,
                Object src,
                Object obj)
Public constructor

Parameters:
dest - Address of receiver. If it is null or a string, then it is sent to the group (either to current group or to the group as given in the string). If it is a Vector, then it contains a number of addresses to which it must be sent. Otherwise, it contains a single destination.

Addresses are generally untyped (all are of type Object. A channel instance must know what types of addresses it expects and downcast accordingly.

src - Address of sender
obj - The object will be serialized into the byte buffer. Object has to be serializable !
 o Message
 public Message()

Methods

 o GetDest
 public Object GetDest()
 o SetDest
 public void SetDest(Object new_dest)
 o GetSrc
 public Object GetSrc()
 o SetSrc
 public void SetSrc(Object new_src)
 o GetBuffer
 public byte[] GetBuffer()
 o SetBuffer
 public void SetBuffer(byte b[])
 o GetHeaders
 public Stack GetHeaders()
 o SetHeaders
 public void SetHeaders(Stack h)
 o SetObject
 public void SetObject(Object obj)
 o GetObject
 public Object GetObject()
 o AddHeader
 public void AddHeader(Object hdr)
 o RemoveHeader
 public Object RemoveHeader()
 o RemoveHeaders
 public void RemoveHeaders()
 o PeekHeader
 public Object PeekHeader()
 o Copy
 public Message Copy()
 o MakeReply
 public Message MakeReply()
 o toString
 public String toString()
Overrides:
toString in class Object
 o Size
 public long Size()
Returns size of buffer plus size of all headers plus a fixed overhead (other fields of Message, marshaling code etc.

 o PrintObjectHeaders
 public String PrintObjectHeaders()
 o writeExternal
 public void writeExternal(ObjectOutput out) throws IOException
 o readExternal
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index