org.jgroups.demos

Class DistributedHashtableDemo

public class DistributedHashtableDemo extends Frame implements WindowListener, ActionListener, DistributedHashtable.Notification

Uses the DistributedHashtable building block. The latter subclasses java.util.Hashtable and overrides the methods that modify the hashtable (e.g. put()). Those methods are multicast to the group, whereas read-only methods such as get() use the local copy. A DistributedHashtable is created given the name of a group; all hashtables with the same name find each other and form a group.

Author: Bela Ban

Constructor Summary
DistributedHashtableDemo()
Method Summary
voidactionPerformed(ActionEvent e)
voidcontentsCleared()
voidcontentsSet(Map m)
voidentryRemoved(Object key)
voidentrySet(Object key, Object value)
static voidmain(String[] args)
voidstart(ChannelFactory factory, String props, boolean persist)
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

DistributedHashtableDemo

public DistributedHashtableDemo()

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

contentsCleared

public void contentsCleared()

contentsSet

public void contentsSet(Map m)

entryRemoved

public void entryRemoved(Object key)

entrySet

public void entrySet(Object key, Object value)

main

public static void main(String[] args)

start

public void start(ChannelFactory factory, String props, boolean persist)

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.