public class PingData extends Object implements SizeStreamable
Modifier and Type | Field and Description |
---|---|
protected boolean |
is_server |
protected String |
logical_name |
protected Collection<PhysicalAddress> |
physical_addrs |
protected Address |
sender |
protected View |
view |
protected ViewId |
view_id |
Constructor and Description |
---|
PingData() |
PingData(Address sender,
View view,
boolean is_server) |
PingData(Address sender,
View view,
boolean is_server,
String logical_name,
Collection<PhysicalAddress> physical_addrs) |
PingData(Address sender,
View view,
ViewId view_id,
boolean is_server,
String logical_name,
Collection<PhysicalAddress> physical_addrs) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Address |
getAddress() |
Address |
getCoordAddress() |
String |
getLogicalName() |
Collection<Address> |
getMembers() |
Collection<PhysicalAddress> |
getPhysicalAddrs() |
View |
getView() |
ViewId |
getViewId() |
boolean |
hasCoord() |
int |
hashCode() |
boolean |
isCoord() |
boolean |
isServer() |
String |
printViewId() |
void |
readFrom(DataInput instream)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
void |
setView(View view) |
void |
setViewId(ViewId view_id) |
int |
size()
Returns the size (in bytes) of the marshalled object
|
String |
toString() |
void |
writeTo(DataOutput outstream)
Write the entire state of the current object (including superclasses) to outstream.
|
protected Address sender
protected View view
protected ViewId view_id
protected boolean is_server
protected String logical_name
protected Collection<PhysicalAddress> physical_addrs
public PingData()
public PingData(Address sender, View view, boolean is_server, String logical_name, Collection<PhysicalAddress> physical_addrs)
public PingData(Address sender, View view, ViewId view_id, boolean is_server, String logical_name, Collection<PhysicalAddress> physical_addrs)
public boolean isCoord()
public boolean hasCoord()
public Address getAddress()
public Address getCoordAddress()
public Collection<Address> getMembers()
public View getView()
public void setView(View view)
public ViewId getViewId()
public void setViewId(ViewId view_id)
public boolean isServer()
public String getLogicalName()
public Collection<PhysicalAddress> getPhysicalAddrs()
public String printViewId()
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
public int size()
SizeStreamable
size
in interface SizeStreamable
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.