org.jgroups.demos

Class ViewDemo

public class ViewDemo extends Object implements MembershipListener

Demos the reception of views using a PullPushAdapter. Just start a number of members, and kill them randomly. The view should always be correct.
Method Summary
voidblock()
Block sending and receiving of messages until ViewAccepted is called
static voidmain(String[] args)
voidstart(String props, boolean use_additional_data)
voidsuspect(Address suspected_mbr)
Called when a member is suspected
voidviewAccepted(View new_view)

Method Detail

block

public void block()
Block sending and receiving of messages until ViewAccepted is called

main

public static void main(String[] args)

start

public void start(String props, boolean use_additional_data)

suspect

public void suspect(Address suspected_mbr)
Called when a member is suspected

viewAccepted

public void viewAccepted(View new_view)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.