Class Gossip

java.lang.Object
org.jgroups.demos.Gossip
All Implemented Interfaces:
ActionListener, WindowListener, Runnable, EventListener, ChannelListener

public class Gossip extends Object implements Runnable, WindowListener, ActionListener, ChannelListener
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.