org.jgroups.demos

Class NotificationBusDemo

Implemented Interfaces:
NotificationBus.Consumer

public class NotificationBusDemo
extends java.lang.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

Serializable
getCache()
Called on the coordinator to obtains its cache
void
handleNotification(Serializable n)
static void
main(String[] args)
void
memberJoined(Address mbr)
void
memberLeft(Address mbr)
void
start(String bus_name, String props)

Method Details

getCache

public Serializable getCache()
Called on the coordinator to obtains its cache
Specified by:
getCache in interface NotificationBus.Consumer

handleNotification

public void handleNotification(Serializable n)
Specified by:
handleNotification in interface NotificationBus.Consumer

main

public static void main(String[] args)

memberJoined

public void memberJoined(Address mbr)
Specified by:
memberJoined in interface NotificationBus.Consumer

memberLeft

public void memberLeft(Address mbr)
Specified by:
memberLeft in interface NotificationBus.Consumer

start

public void start(String bus_name,
                  String props)

Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.