| Demos the UNICAST protocol. As soon as we have 2 members in a group, a destination member is randomly
chosen (not self !). Then, as long as that destination member is member of the group, we send NUM_MSGS
unicast messages to it. The receiver checks that it receives messages in order (monotonically increasing).
The sample protocol stack below has a DISCARD protocol in it, which randomly discards
both unicast and multicast messages (in the example below, down messages are discarded with a probability
of 10%, i.e. 1 out of 10 messages is discarded)).
If you want to see the informational messages for DISCARD and UNICAST, you have to enable them in trace, e.g.
by adding the following statements to your jgroups.properties file (in your home directory):
trace1=DISCARD DEBUG STDOUT
trace2=UNICAST DEBUG STDOUT
author: Bela Ban |