org.jgroups.demos
Class Gossip
- ActionListener, Runnable, WindowListener, ChannelListener
public class Gossip
extends java.lang.Object
Demos that tries to graphically illustrating the gossip (or pbcast) protocol: every sender periodically sends
a DRAW command to a random subset of the group members. Each member checks whether it already received the
message and applies it if not yet received. Otherwise it discards it. If not yet received, the message will
be forwarded to 10% of the group members. This demo is probably only interesting when we have a larger
number of members: a gossip will gradually reach all members, coloring their whiteboards.
Gossip(String props, long traffic)
|
Gossip
public Gossip(String props,
long traffic)
throws Exception
actionPerformed
public void actionPerformed(ActionEvent e)
clearPanel
public void clearPanel()
colorPanel
public void colorPanel(int r,
int g,
int b)
main
public static void main(String[] args)
mouseMoved
public void mouseMoved(MouseEvent e)
sendClearPanelMsg
public void sendClearPanelMsg()
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 B) 1998-2005 Bela Ban. All Rights Reserved.