org.jgroups.demos
Class TotalOrder
Frame
org.jgroups.demos.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.
TotalOrder(String title, long timeout, int num_fields, int field_size, String props)
|
static void | main(String[] args)
|
void | rrror(String msg)
|
TotalOrder
public TotalOrder(String title,
long timeout,
int num_fields,
int field_size,
String props)
main
public static void main(String[] args)
rrror
public void rrror(String msg)
Copyright B) 1998-2005 Bela Ban. All Rights Reserved.