|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.stack.GossipData
public class GossipData
Encapsulates data sent between GossipRouter and GossipClient
Constructor Summary | |
---|---|
GossipData()
|
|
GossipData(byte type)
|
|
GossipData(byte type,
java.lang.String group,
Address addr)
|
|
GossipData(byte type,
java.lang.String group,
Address addr,
byte[] buffer)
|
|
GossipData(byte type,
java.lang.String group,
Address addr,
byte[] buffer,
int offset,
int length)
|
|
GossipData(byte type,
java.lang.String group,
Address addr,
java.util.List<Address> mbrs)
|
|
GossipData(byte type,
java.lang.String group,
Address addr,
java.util.List<Address> mbrs,
java.util.List<PhysicalAddress> physical_addrs)
|
|
GossipData(byte type,
java.lang.String group,
Address addr,
java.lang.String logical_name,
java.util.List<PhysicalAddress> phys_addrs)
|
Method Summary | |
---|---|
Address |
getAddress()
|
byte[] |
getBuffer()
|
java.lang.String |
getGroup()
|
java.lang.String |
getLogicalName()
|
java.util.List<Address> |
getMembers()
|
java.util.Collection<PhysicalAddress> |
getPhysicalAddresses()
|
byte |
getType()
|
void |
readFrom(java.io.DataInput 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<Address> mbrs)
|
int |
size()
Returns the size (in bytes) of the marshalled object |
java.lang.String |
toString()
|
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GossipData()
public GossipData(byte type)
public GossipData(byte type, java.lang.String group, Address addr)
public GossipData(byte type, java.lang.String group, Address addr, java.util.List<Address> mbrs)
public GossipData(byte type, java.lang.String group, Address addr, java.util.List<Address> mbrs, java.util.List<PhysicalAddress> physical_addrs)
public GossipData(byte type, java.lang.String group, Address addr, java.lang.String logical_name, java.util.List<PhysicalAddress> phys_addrs)
public GossipData(byte type, java.lang.String group, Address addr, byte[] buffer)
public GossipData(byte type, java.lang.String group, Address addr, byte[] buffer, int offset, int length)
Method Detail |
---|
public byte getType()
public java.lang.String getGroup()
public Address getAddress()
public java.lang.String getLogicalName()
public java.util.List<Address> getMembers()
public byte[] getBuffer()
public java.util.Collection<PhysicalAddress> getPhysicalAddresses()
public void setMembers(java.util.List<Address> mbrs)
public java.lang.String toString()
toString
in class java.lang.Object
public void writeTo(java.io.DataOutput out) throws java.lang.Exception
Streamable
writeTo
in interface Streamable
java.lang.Exception
public void readFrom(java.io.DataInput in) throws java.lang.Exception
Streamable
readFrom
in interface Streamable
java.lang.Exception
public int size()
SizeStreamable
size
in interface SizeStreamable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |