peerbase.util
Class SimplePingStabilizer
java.lang.Object
peerbase.util.SimplePingStabilizer
- All Implemented Interfaces:
- StabilizerInterface
public class SimplePingStabilizer
- extends java.lang.Object
- implements StabilizerInterface
A simple stabilization routine that simply sends "PING" messages to
every peer in a node's list of peers, and removes from the list any
that fail to accept the connection. Whether peers reply to the
actual message or not does not matter to this stabilizer.
- Author:
- Nadeem Abdul Hamid
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimplePingStabilizer
public SimplePingStabilizer(Node peer)
SimplePingStabilizer
public SimplePingStabilizer(Node peer,
java.lang.String msgtype)
stabilizer
public void stabilizer()
- Specified by:
stabilizer
in interface StabilizerInterface