public class GossipData extends java.lang.Object implements SizeStreamable
构造器和说明 |
---|
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)
已过时。
Use the constructor wityh a single PhysicalAddress instead
|
GossipData(byte type,
java.lang.String group,
Address addr,
java.util.List<Address> mbrs,
PhysicalAddress physical_addr) |
GossipData(byte type,
java.lang.String group,
Address addr,
java.lang.String logical_name,
java.util.List<PhysicalAddress> physical_addrs)
已过时。
Use the constructor wityh a single PhysicalAddress instead
|
GossipData(byte type,
java.lang.String group,
Address addr,
java.lang.String logical_name,
PhysicalAddress physical_addr) |
限定符和类型 | 方法和说明 |
---|---|
Address |
getAddress() |
byte[] |
getBuffer() |
java.lang.String |
getGroup() |
java.lang.String |
getLogicalName() |
java.util.List<Address> |
getMembers() |
PhysicalAddress |
getPhysicalAddress() |
java.util.Collection<PhysicalAddress> |
getPhysicalAddresses()
已过时。
Use
getPhysicalAddress() instead |
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.
|
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)
@Deprecated 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.util.List<Address> mbrs, PhysicalAddress physical_addr)
@Deprecated public GossipData(byte type, java.lang.String group, Address addr, java.lang.String logical_name, java.util.List<PhysicalAddress> physical_addrs)
public GossipData(byte type, java.lang.String group, Address addr, java.lang.String logical_name, PhysicalAddress physical_addr)
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)
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()
@Deprecated public java.util.Collection<PhysicalAddress> getPhysicalAddresses()
getPhysicalAddress()
insteadpublic PhysicalAddress getPhysicalAddress()
public void setMembers(java.util.List<Address> mbrs)
public java.lang.String toString()
toString
在类中 java.lang.Object
public void writeTo(java.io.DataOutput out) throws java.lang.Exception
Streamable
writeTo
在接口中 Streamable
java.lang.Exception
public void readFrom(java.io.DataInput in) throws java.lang.Exception
Streamable
readFrom
在接口中 Streamable
java.lang.Exception
public int size()
SizeStreamable
size
在接口中 SizeStreamable