public class GossipData extends java.lang.Object implements SizeStreamable
Constructor and Description |
---|
GossipData() |
GossipData(GossipType type) |
GossipData(GossipType type,
java.lang.String group,
Address addr) |
GossipData(GossipType type,
java.lang.String group,
Address addr,
byte[] buffer) |
GossipData(GossipType type,
java.lang.String group,
Address addr,
byte[] buffer,
int offset,
int length) |
GossipData(GossipType type,
java.lang.String group,
Address addr,
java.util.List<PingData> ping_data) |
GossipData(GossipType type,
java.lang.String group,
Address addr,
java.util.List<PingData> ping_data,
PhysicalAddress physical_addr) |
GossipData(GossipType type,
java.lang.String group,
Address addr,
java.lang.String logical_name,
PhysicalAddress physical_addr) |
Modifier and Type | Method and Description |
---|---|
GossipData |
addPingData(PingData data) |
Address |
getAddress() |
byte[] |
getBuffer() |
java.lang.String |
getGroup() |
int |
getLength() |
java.lang.String |
getLogicalName() |
int |
getOffset() |
PhysicalAddress |
getPhysicalAddress() |
java.util.List<PingData> |
getPingData() |
GossipType |
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 |
setPingData(java.util.List<PingData> 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(GossipType type)
public GossipData(GossipType type, java.lang.String group, Address addr)
public GossipData(GossipType type, java.lang.String group, Address addr, java.util.List<PingData> ping_data)
public GossipData(GossipType type, java.lang.String group, Address addr, java.util.List<PingData> ping_data, PhysicalAddress physical_addr)
public GossipData(GossipType type, java.lang.String group, Address addr, java.lang.String logical_name, PhysicalAddress physical_addr)
public GossipData(GossipType type, java.lang.String group, Address addr, byte[] buffer)
public GossipData(GossipType type, java.lang.String group, Address addr, byte[] buffer, int offset, int length)
public GossipType getType()
public java.lang.String getGroup()
public Address getAddress()
public java.lang.String getLogicalName()
public java.util.List<PingData> getPingData()
public byte[] getBuffer()
public int getOffset()
public int getLength()
public PhysicalAddress getPhysicalAddress()
public void setPingData(java.util.List<PingData> mbrs)
public GossipData addPingData(PingData data)
public java.lang.String toString()
toString
in class java.lang.Object
public int size()
SizeStreamable
size
in interface SizeStreamable
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
Copyright © 1998-2020 Red Hat. All Rights Reserved.