org.jgroups.stack
Class GossipData
java.lang.Object
org.jgroups.stack.GossipData
- All Implemented Interfaces:
- Streamable
public class GossipData
- extends java.lang.Object
- implements Streamable
Encapsulates data sent between GossipRouter and GossipClient
- Author:
- Bela Ban Oct 4 2001
Method Summary |
Address |
getAddress()
|
java.lang.String |
getGroup()
|
java.util.List |
getMembers()
|
byte |
getType()
|
void |
readFrom(java.io.DataInputStream in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed |
void |
setMembers(java.util.List mbrs)
|
java.lang.String |
toString()
|
void |
writeTo(java.io.DataOutputStream out)
Write the entire state of the current object (including superclasses) to outstream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GossipData
public GossipData()
GossipData
public GossipData(byte type)
GossipData
public GossipData(byte type,
java.lang.String group,
Address addr,
java.util.List mbrs)
getType
public byte getType()
getGroup
public java.lang.String getGroup()
getAddress
public Address getAddress()
getMembers
public java.util.List getMembers()
setMembers
public void setMembers(java.util.List mbrs)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
writeTo
public void writeTo(java.io.DataOutputStream out)
throws java.io.IOException
- Description copied from interface:
Streamable
- Write the entire state of the current object (including superclasses) to outstream.
Note that the output stream must not be closed
- Specified by:
writeTo
in interface Streamable
- Throws:
java.io.IOException
readFrom
public void readFrom(java.io.DataInputStream in)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
- Description copied from interface:
Streamable
- Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
- Specified by:
readFrom
in interface Streamable
- Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException
Copyright ? 1998-2006 Bela Ban. All Rights Reserved.