All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JavaGroups.Message

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

public class Message
extends Object
implements Serializable

Constructor Index

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

Method Index

 o AddHeader(Serializable)
 o Copy()
 o GetBuffer()
 o GetDest()
 o GetHeaders()
 o GetId()
 o GetRspId()
 o GetSrc()
 o IsOneway()
 o IsResponse()
 o main(String[])
 o MakeReply()
 o PeekHeader()
 o PrintObjectHeaders()
 o RemoveHeader()
 o RemoveHeaders()
 o SetBuffer(byte[])
 o SetDest(Object)
 o SetHeaders(Stack)
 o SetId(long)
 o SetOneway()
 o SetRspId(long)
 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()

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 GetId
 public long GetId()
 o SetId
 public void SetId(long id)
 o IsResponse
 public boolean IsResponse()
 o GetRspId
 public long GetRspId()
 o SetRspId
 public void SetRspId(long i)
 o IsOneway
 public boolean IsOneway()
 o SetOneway
 public void SetOneway()
 o GetHeaders
 public Stack GetHeaders()
 o SetHeaders
 public void SetHeaders(Stack h)
 o AddHeader
 public void AddHeader(Serializable 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 void PrintObjectHeaders()
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index