org.jgroups.debug
Class Simulator
java.lang.Object
org.jgroups.debug.Simulator
- public class Simulator
- extends java.lang.Object
Tests one or more protocols independently. Look at org.jgroups.tests.FCTest for an example of how to use it.
- Version:
- $Id: Simulator.java,v 1.6 2005/08/22 14:12:53 belaban Exp $
- Author:
- Bela Ban
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Simulator
public Simulator()
setProtocolStack
public void setProtocolStack(Protocol[] stack)
dumpStats
public java.lang.String dumpStats()
addMember
public void addMember(Address addr)
addMember
public void addMember(Address addr,
Simulator s)
setLocalAddress
public void setLocalAddress(Address addr)
setView
public void setView(View v)
setReceiver
public void setReceiver(Simulator.Receiver r)
send
public void send(Event evt)
receive
public void receive(Event evt)
start
public void start()
throws java.lang.Exception
- Throws:
java.lang.Exception
stop
public void stop()
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.