peerbase.util
Class SimplePingStabilizer

java.lang.Object
  extended by 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

Constructor Summary
SimplePingStabilizer(Node peer)
           
SimplePingStabilizer(Node peer, java.lang.String msgtype)
           
 
Method Summary
 void stabilizer()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePingStabilizer

public SimplePingStabilizer(Node peer)

SimplePingStabilizer

public SimplePingStabilizer(Node peer,
                            java.lang.String msgtype)
Method Detail

stabilizer

public void stabilizer()
Specified by:
stabilizer in interface StabilizerInterface