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() |
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() |
String |
toString() |
void |
writeTo(DataOutput 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 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()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.