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) GossipData(byte type, String group, Address addr, byte[] buffer) GossipData(byte type, String group, Address addr, byte[] buffer, int offset, int length) GossipData(byte type, String group, Address addr, String logical_name, List<PhysicalAddress> phys_addrs) GossipData(byte type, String group, Address addr, List<Address> mbrs) GossipData(byte type, String group, Address addr, List<Address> mbrs, List<PhysicalAddress> physical_addrs) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getGroup()bytegetType()voidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedvoidsetMembers(List<Address> mbrs) intsize()toString()voidwriteTo(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
-
GossipData
-
GossipData
-
GossipData
public GossipData(byte type, String group, Address addr, String logical_name, List<PhysicalAddress> phys_addrs) -
GossipData
-
GossipData
-
-
Method Details
-
getType
public byte getType() -
getGroup
-
getAddress
-
getLogicalName
-
getMembers
-
getBuffer
public byte[] getBuffer() -
getPhysicalAddresses
-
setMembers
-
toString
-
writeTo
Description 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:
IOException
-
readFrom
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException Description 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:
IOExceptionIllegalAccessExceptionInstantiationException
-
size
public int size()
-