org.jgroups.demos

Class NotificationBusDemo

public class NotificationBusDemo extends Object implements NotificationBus.Consumer

Demoes the NotificationBus (without caching). Start a number of members and type in messages. All members will receive the messages. View changes will also be displayed (e.g. member joined, left).

Author: Bela Ban

Method Summary
SerializablegetCache()
voidhandleNotification(Serializable n)
static voidmain(String[] args)
voidmemberJoined(Address mbr)
voidmemberLeft(Address mbr)
voidstart(String bus_name, String props)

Method Detail

getCache

public Serializable getCache()

handleNotification

public void handleNotification(Serializable n)

main

public static void main(String[] args)

memberJoined

public void memberJoined(Address mbr)

memberLeft

public void memberLeft(Address mbr)

start

public void start(String bus_name, String props)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.