org.jgroups.demos

Class DistributedQueueDemo

public class DistributedQueueDemo extends Frame implements WindowListener, ActionListener, DistributedQueue.Notification

Uses the DistributedQueue building block. The latter subclasses org.jgroups.util.Queue and overrides the methods that modify the queue (e.g. add()). Those methods are multicast to the group, whereas read-only methods such as peek() use the local copy. A DistributedQueue is created given the name of a group; all queues with the same name find each other and form a group.

Author: Romuald du Song

Constructor Summary
DistributedQueueDemo()
Method Summary
voidactionPerformed(ActionEvent e)
voidcontentsCleared()
voidcontentsSet(Collection new_entries)
voidentryAdd(Object value)
voidentryRemoved(Object key)
static voidmain(String[] args)
voidstart(String groupname, ChannelFactory factory, String props)
voidviewChange(Vector joined, Vector left)
voidwindowActivated(WindowEvent e)
voidwindowClosed(WindowEvent e)
voidwindowClosing(WindowEvent e)
voidwindowDeactivated(WindowEvent e)
voidwindowDeiconified(WindowEvent e)
voidwindowIconified(WindowEvent e)
voidwindowOpened(WindowEvent e)

Constructor Detail

DistributedQueueDemo

public DistributedQueueDemo()

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

contentsCleared

public void contentsCleared()

contentsSet

public void contentsSet(Collection new_entries)

entryAdd

public void entryAdd(Object value)

entryRemoved

public void entryRemoved(Object key)

main

public static void main(String[] args)

start

public void start(String groupname, ChannelFactory factory, String props)

viewChange

public void viewChange(Vector joined, Vector left)

windowActivated

public void windowActivated(WindowEvent e)

windowClosed

public void windowClosed(WindowEvent e)

windowClosing

public void windowClosing(WindowEvent e)

windowDeactivated

public void windowDeactivated(WindowEvent e)

windowDeiconified

public void windowDeiconified(WindowEvent e)

windowIconified

public void windowIconified(WindowEvent e)

windowOpened

public void windowOpened(WindowEvent e)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.