Package org.jgroups.protocols
Class PingData
java.lang.Object
org.jgroups.protocols.PingData
- All Implemented Interfaces:
Streamable
Encapsulates information about a cluster node, e.g. local address, coordinator's address, logical name and
physical address(es)
- Author:
- Bela Ban
-
Constructor Summary
ConstructorsConstructorDescriptionPingData()PingData(Address own_addr, View view, boolean is_server, String logical_name, Collection<PhysicalAddress> physical_addrs) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetView()booleanhasCoord()inthashCode()booleanisCoord()booleanisServer()voidreadFrom(DataInputStream instream) Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedvoidintsize()toString()voidwriteTo(DataOutputStream outstream) Write the entire state of the current object (including superclasses) to outstream.
-
Constructor Details
-
PingData
public PingData() -
PingData
-
PingData
public PingData(Address own_addr, View view, boolean is_server, String logical_name, Collection<PhysicalAddress> physical_addrs)
-
-
Method Details
-
isCoord
public boolean isCoord() -
hasCoord
public boolean hasCoord() -
getAddress
-
getCoordAddress
-
getMembers
-
getView
-
setView
-
isServer
public boolean isServer() -
getLogicalName
-
getPhysicalAddrs
-
equals
-
hashCode
public int hashCode() -
toString
-
writeTo
Description copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeToin interfaceStreamable- Throws:
IOException
-
readFrom
public void readFrom(DataInputStream instream) throws IOException, IllegalAccessException, InstantiationException Description copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFromin interfaceStreamable- Throws:
IOExceptionIllegalAccessExceptionInstantiationException
-
size
public int size()
-