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

Constructor Summary

TotalOrder(String title, long timeout, int num_fields, int field_size, String props)

Method Summary

static void
main(String[] args)
void
rrror(String msg)

Constructor Details

TotalOrder

public TotalOrder(String title,
                  long timeout,
                  int num_fields,
                  int field_size,
                  String props)

Method Details

main

public static void main(String[] args)


rrror

public void rrror(String msg)


Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.