public class GossipData extends Object implements Streamable
Constructor and Description |
---|
GossipData() |
GossipData(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,
List<Address> mbrs) |
GossipData(byte type,
String group,
Address addr,
List<Address> mbrs,
List<PhysicalAddress> physical_addrs) |
GossipData(byte type,
String group,
Address addr,
String logical_name,
List<PhysicalAddress> phys_addrs) |
Modifier and Type | Method and Description |
---|---|
Address |
getAddress() |
byte[] |
getBuffer() |
String |
getGroup() |
String |
getLogicalName() |
List<Address> |
getMembers() |
Collection<PhysicalAddress> |
getPhysicalAddresses() |
byte |
getType() |
void |
readFrom(DataInputStream in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
void |
setMembers(List<Address> mbrs) |
int |
size() |
String |
toString() |
void |
writeTo(DataOutputStream out)
Write the entire state of the current object (including superclasses) to outstream.
|
public GossipData()
public GossipData(byte type)
public GossipData(byte type, String group, Address addr, List<Address> mbrs, List<PhysicalAddress> physical_addrs)
public GossipData(byte type, String group, Address addr, String logical_name, List<PhysicalAddress> phys_addrs)
public byte getType()
public String getGroup()
public Address getAddress()
public String getLogicalName()
public byte[] getBuffer()
public Collection<PhysicalAddress> getPhysicalAddresses()
public void writeTo(DataOutputStream out) throws IOException
Streamable
writeTo
in interface Streamable
IOException
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException
Streamable
readFrom
in interface Streamable
IOException
IllegalAccessException
InstantiationException
public int size()
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.