public class GossipData extends Object implements SizeStreamable
Constructor and Description |
---|
GossipData() |
GossipData(GossipType type) |
GossipData(GossipType type,
String group,
Address addr) |
GossipData(GossipType type,
String group,
Address addr,
byte[] buffer) |
GossipData(GossipType type,
String group,
Address addr,
byte[] buffer,
int offset,
int length) |
GossipData(GossipType type,
String group,
Address addr,
List<PingData> ping_data) |
GossipData(GossipType type,
String group,
Address addr,
List<PingData> ping_data,
PhysicalAddress physical_addr) |
GossipData(GossipType type,
String group,
Address addr,
String logical_name,
PhysicalAddress physical_addr) |
Modifier and Type | Method and Description |
---|---|
GossipData |
addPingData(PingData data) |
Address |
getAddress() |
byte[] |
getBuffer() |
String |
getGroup() |
int |
getLength() |
String |
getLogicalName() |
int |
getOffset() |
PhysicalAddress |
getPhysicalAddress() |
List<PingData> |
getPingData() |
GossipType |
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 |
setPingData(List<PingData> 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(GossipType type)
public GossipData(GossipType type, String group, Address addr)
public GossipData(GossipType type, String group, Address addr, List<PingData> ping_data)
public GossipData(GossipType type, String group, Address addr, List<PingData> ping_data, PhysicalAddress physical_addr)
public GossipData(GossipType type, String group, Address addr, String logical_name, PhysicalAddress physical_addr)
public GossipData(GossipType type, String group, Address addr, byte[] buffer)
public GossipData(GossipType type, String group, Address addr, byte[] buffer, int offset, int length)
public GossipType getType()
public String getGroup()
public Address getAddress()
public String getLogicalName()
public byte[] getBuffer()
public int getOffset()
public int getLength()
public PhysicalAddress getPhysicalAddress()
public GossipData addPingData(PingData data)
public int size()
SizeStreamable
size
in interface SizeStreamable
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
Copyright © 2016 JBoss, a division of Red Hat. All rights reserved.