public class GossipData extends java.lang.Object implements Streamable
Constructor and Description |
---|
GossipData() |
GossipData(byte type) |
GossipData(byte type,
java.lang.String group,
Address addr,
java.util.List mbrs) |
Modifier and Type | Method and 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 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.
|
public GossipData()
public GossipData(byte type)
public GossipData(byte type, java.lang.String group, Address addr, java.util.List mbrs)
public byte getType()
public java.lang.String getGroup()
public Address getAddress()
public java.util.List getMembers()
public void setMembers(java.util.List mbrs)
public java.lang.String toString()
toString
in class java.lang.Object
public void writeTo(java.io.DataOutputStream out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public void readFrom(java.io.DataInputStream in) throws java.io.IOException, java.lang.IllegalAccessException, java.lang.InstantiationException
Streamable
readFrom
in interface Streamable
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException
Copyright ? 1998-2006 Bela Ban. All Rights Reserved.