All Packages Class Hierarchy This Package Previous Next Index
Class JavaGroups.Message
java.lang.Object
|
+----JavaGroups.Message
- public class Message
- extends Object
- implements Externalizable
-
Message()
-
-
Message(Object, Object, byte[])
- Public constructor
-
Message(Object, Object, Object)
- Public constructor
-
AddHeader(Object)
-
-
Copy()
-
-
GetBuffer()
-
-
GetDest()
-
-
GetHeaders()
-
-
GetObject()
-
-
GetSrc()
-
-
main(String[])
-
-
MakeReply()
-
-
PeekHeader()
-
-
PrintObjectHeaders()
-
-
readExternal(ObjectInput)
-
-
RemoveHeader()
-
-
RemoveHeaders()
-
-
SetBuffer(byte[])
-
-
SetDest(Object)
-
-
SetHeaders(Stack)
-
-
SetObject(Object)
-
-
SetSrc(Object)
-
-
Size()
- Returns size of buffer plus size of all headers plus a fixed overhead (other fields of
Message, marshaling code etc.
-
toString()
-
-
writeExternal(ObjectOutput)
-
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
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 !
Message
public Message()
GetDest
public Object GetDest()
SetDest
public void SetDest(Object new_dest)
GetSrc
public Object GetSrc()
SetSrc
public void SetSrc(Object new_src)
GetBuffer
public byte[] GetBuffer()
SetBuffer
public void SetBuffer(byte b[])
GetHeaders
public Stack GetHeaders()
SetHeaders
public void SetHeaders(Stack h)
SetObject
public void SetObject(Object obj)
GetObject
public Object GetObject()
AddHeader
public void AddHeader(Object hdr)
RemoveHeader
public Object RemoveHeader()
RemoveHeaders
public void RemoveHeaders()
PeekHeader
public Object PeekHeader()
Copy
public Message Copy()
MakeReply
public Message MakeReply()
toString
public String toString()
- Overrides:
- toString in class Object
Size
public long Size()
- Returns size of buffer plus size of all headers plus a fixed overhead (other fields of
Message, marshaling code etc.
PrintObjectHeaders
public String PrintObjectHeaders()
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index