public class PingData extends Object implements Streamable
Modifier and Type | Field and Description |
---|---|
protected boolean |
is_server |
protected String |
logical_name |
protected Address |
own_addr |
protected Collection<PhysicalAddress> |
physical_addrs |
protected View |
view |
protected ViewId |
view_id |
Constructor and Description |
---|
PingData() |
PingData(Address own_addr,
View view,
boolean is_server) |
PingData(Address own_addr,
View view,
boolean is_server,
String logical_name,
Collection<PhysicalAddress> physical_addrs) |
PingData(Address own_addr,
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() |
void |
readFrom(DataInputStream 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() |
String |
toString() |
void |
writeTo(DataOutputStream outstream)
Write the entire state of the current object (including superclasses) to outstream.
|
protected Address own_addr
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 own_addr, View view, boolean is_server, String logical_name, Collection<PhysicalAddress> physical_addrs)
public PingData(Address own_addr, 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 void writeTo(DataOutputStream outstream) throws IOException
Streamable
writeTo
in interface Streamable
IOException
public void readFrom(DataInputStream instream) throws IOException, IllegalAccessException, InstantiationException
Streamable
readFrom
in interface Streamable
IOException
IllegalAccessException
InstantiationException
public int size()
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.