org.jgroups.demos
Class TotalOrder
public
class
TotalOrder
extends Frame
Originally written to be a demo for TOTAL order (code to be written by a student). In the meantime,
it evolved into a state transfer demo. All members maintain a shared matrix and continually
broadcast changes to be applied to a randomly chosen field (e.g. multiplication of field with new
value, division, addition, subtraction). Each member can be started independently (starts to
broadcast update messages to all members). When "Stop" is pressed, a stop message is broadcast to
all members, causing them to stop sending messages. The "Clear" button clears the shared state;
"GetState" refreshes it from the shared group state (using the state transfer protocol).
If the
demo is to be used to show TOTAL order, then the TOTAL protocol would have to be added to the
stack.
Author: Bela Ban
public TotalOrder(String title, long timeout, int num_fields, int field_size, String props)
public static void main(String[] args)
public void rrror(String msg)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.