Package 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
-
-
Constructor Summary
Constructors Constructor Description GossipData()
GossipData(byte type)
GossipData(byte type, java.lang.String group, Address addr, java.util.List mbrs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 closedvoid
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.
-
-
-
Constructor Detail
-
GossipData
public GossipData()
-
GossipData
public GossipData(byte type)
-
GossipData
public GossipData(byte type, java.lang.String group, Address addr, java.util.List mbrs)
-
-
Method Detail
-
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 classjava.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 interfaceStreamable
- 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 interfaceStreamable
- Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException
-
-