| java.lang.Object org.jgroups.demos.Gossip
Gossip | public class Gossip implements Runnable,WindowListener,ActionListener,ChannelListener(Code) | | 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.
|
Constructor Summary | |
public | Gossip(String props, long traffic) |
gen | TrafficGenerator gen(Code) | | |
subset | final double subset(Code) | | |
traffic_interval | long traffic_interval(Code) | | |
channelConnected | public void channelConnected(Channel channel)(Code) | | |
channelDisconnected | public void channelDisconnected(Channel channel)(Code) | | |
channelReconnected | public void channelReconnected(Address new_addr)(Code) | | |
channelShunned | public void channelShunned()(Code) | | |
clearPanel | public void clearPanel()(Code) | | |
colorPanel | public void colorPanel(int r, int g, int b)(Code) | | |
sendClearPanelMsg | public void sendClearPanelMsg()(Code) | | |
sendGossip | void sendGossip()(Code) | | |
setTitle | void setTitle()(Code) | | |
startThread | void startThread()(Code) | | |
|
|