public class PingData extends Object implements SizeStreamable, Constructable<PingData>
Modifier and Type | Field and Description |
---|---|
protected byte |
flags |
protected static byte |
is_coord |
protected static byte |
is_server |
protected String |
logical_name |
protected Collection<? extends Address> |
mbrs |
protected PhysicalAddress |
physical_addr |
protected Address |
sender |
Constructor and Description |
---|
PingData() |
PingData(Address sender,
boolean is_server) |
PingData(Address sender,
boolean is_server,
String logical_name,
PhysicalAddress physical_addr) |
Modifier and Type | Method and Description |
---|---|
PingData |
coord(boolean c) |
Supplier<? extends PingData> |
create()
Creates an instance of the class implementing this interface
|
boolean |
equals(Object obj) |
Address |
getAddress() |
String |
getLogicalName() |
PhysicalAddress |
getPhysicalAddr() |
int |
hashCode() |
boolean |
isCoord() |
boolean |
isServer() |
Collection<? extends Address> |
mbrs() |
PingData |
mbrs(Collection<? extends Address> mbrs) |
void |
readFrom(DataInput instream)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
serializedSize()
Returns the size (in bytes) of the marshalled object
|
PingData |
server(boolean c) |
String |
toString() |
void |
writeTo(DataOutput outstream)
Write the entire state of the current object (including superclasses) to outstream.
|
protected Address sender
protected byte flags
protected String logical_name
protected PhysicalAddress physical_addr
protected Collection<? extends Address> mbrs
protected static final byte is_server
protected static final byte is_coord
public PingData()
public PingData(Address sender, boolean is_server)
public PingData(Address sender, boolean is_server, String logical_name, PhysicalAddress physical_addr)
public Supplier<? extends PingData> create()
Constructable
create
in interface Constructable<PingData>
public PingData coord(boolean c)
public PingData server(boolean c)
public boolean isCoord()
public boolean isServer()
public Address getAddress()
public String getLogicalName()
public PhysicalAddress getPhysicalAddr()
public PingData mbrs(Collection<? extends Address> mbrs)
public Collection<? extends Address> mbrs()
public int serializedSize()
SizeStreamable
serializedSize
in interface SizeStreamable
public void writeTo(DataOutput outstream) throws Exception
Streamable
writeTo
in interface Streamable
Exception
public void readFrom(DataInput instream) throws Exception
Streamable
readFrom
in interface Streamable
Exception
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.