org.jgroups.demos

Class TotalTokenDemo

Implemented Interfaces:
Runnable

public class TotalTokenDemo
extends JFrame
implements Runnable

Demonstration of TOTAL_TOKEN protocol stack implementing total order. TotalTokenDemo could however be used by any other stack configuration which does not neccesarily have to satisfy total order. If using stack configuration other than TOTAL_TOKEN an appropriate xml configuration file should be used. See -help for details.

TotalTokenDemo will verify :

total ordering of messages - by computing a color to be displayed in a gui window.

virtual synchrony - by displaying number of messages transmitted in last view.

Version:
$Revision: 1.10 $
Authors:
Vladimir Blagojevic vladimir@cs.yorku.ca
Ivan Bilenjkij ivan@ibossa.com
See Also:
TOTAL_TOKEN

Nested Class Summary

static class
TotalTokenDemo.TotalPayload

Constructor Summary

TotalTokenDemo(String props)

Method Summary

void
addPanel(String name, JPanel panel)
void
connect()
void
disconnect()
JChannel
getChannel()
static void
main(args[] )
void
run()

Constructor Details

TotalTokenDemo

public TotalTokenDemo(String props)

Method Details

addPanel

public void addPanel(String name,
                     JPanel panel)

connect

public void connect()

disconnect

public void disconnect()

getChannel

public JChannel getChannel()

main

public static void main(args[] )

run

public void run()

Copyright B) 1998-2005 Bela Ban. All Rights Reserved.