org.jgroups.protocols

Class VERIFY_SUSPECT

public class VERIFY_SUSPECT extends Protocol implements Runnable

Catches SUSPECT events traveling up the stack. Verifies that the suspected member is really dead. If yes, passes SUSPECT event up the stack, otherwise discards it. Has to be placed somewhere above the FD layer and below the GMS layer (receiver of the SUSPECT event). Note that SUSPECT events may be reordered by this protocol.
Nested Class Summary
static classVERIFY_SUSPECT.VerifyHeader
Method Summary
StringgetName()
voidrun()
Will be started when a suspect is added to the suspects hashtable.
booleansetProperties(Properties props)
voidstop()
voidup(Event evt)

Method Detail

getName

public String getName()

run

public void run()
Will be started when a suspect is added to the suspects hashtable. Continually iterates over the entries and removes entries whose time have elapsed. For each removed entry, a SUSPECT event is passed up the stack (because elapsed time means verification of member's liveness failed). Computes the shortest time to wait (min of all timeouts) and waits(time) msecs. Will be woken up when entry is removed (in case of successful verification of that member's liveness). Terminates when no entry remains in the hashtable.

setProperties

public boolean setProperties(Properties props)

stop

public void stop()

up

public void up(Event evt)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.