Package org.jgroups.stack
Class GossipData
java.lang.Object
org.jgroups.stack.GossipData
- All Implemented Interfaces:
Streamable
Encapsulates data sent between GossipRouter and GossipClient
- Author:
- Bela Ban Oct 4 2001
-
Constructor Summary
ConstructorsConstructorDescriptionGossipData
(byte type) GossipData
(byte type, String group, Address addr, List mbrs) -
Method Summary
Modifier and TypeMethodDescriptiongetGroup()
byte
getType()
void
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedvoid
setMembers
(List mbrs) toString()
void
writeTo
(DataOutputStream out) Write the entire state of the current object (including superclasses) to outstream.
-
Constructor Details
-
GossipData
public GossipData() -
GossipData
public GossipData(byte type) -
GossipData
-
-
Method Details
-
getType
public byte getType() -
getGroup
-
getAddress
-
getMembers
-
setMembers
-
toString
-
writeTo
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:
IOException
-
readFrom
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, 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:
IOException
IllegalAccessException
InstantiationException
-