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 AddressgetAddress()java.lang.StringgetGroup()java.util.ListgetMembers()bytegetType()voidreadFrom(java.io.DataInputStream in)Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedvoidsetMembers(java.util.List mbrs)java.lang.StringtoString()voidwriteTo(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:
toStringin classjava.lang.Object
-
writeTo
public void writeTo(java.io.DataOutputStream out) throws java.io.IOExceptionDescription copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeToin interfaceStreamable- Throws:
java.io.IOException
-
readFrom
public void readFrom(java.io.DataInputStream in) throws java.io.IOException, java.lang.IllegalAccessException, java.lang.InstantiationExceptionDescription copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFromin interfaceStreamable- Throws:
java.io.IOExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationException
-
-