public class GossipData extends Object implements SizeStreamable
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(DataInput 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()
Returns the size (in bytes) of the marshalled object
|
String |
toString() |
void |
writeTo(DataOutput 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(DataOutput out) throws Exception
Streamable
writeTo
in interface Streamable
Exception
public void readFrom(DataInput in) throws Exception
Streamable
readFrom
in interface Streamable
Exception
public int size()
SizeStreamable
size
in interface SizeStreamable
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.