org.jgroups.debug
Class Simulator

java.lang.Object
  extended byorg.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

Nested Class Summary
static interface Simulator.Receiver
           
 
Constructor Summary
Simulator()
           
 
Method Summary
 void addMember(Address addr)
           
 void addMember(Address addr, Simulator s)
           
 java.lang.String dumpStats()
           
 void receive(Event evt)
           
 void send(Event evt)
           
 void setLocalAddress(Address addr)
           
 void setProtocolStack(Protocol[] stack)
           
 void setReceiver(Simulator.Receiver r)
           
 void setView(View v)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Simulator

public Simulator()
Method Detail

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.