Class Simulator

java.lang.Object
org.jgroups.debug.Simulator

public class Simulator extends 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.11.2.1 2008/05/22 13:23:10 belaban Exp $
Author:
Bela Ban
  • Constructor Details

    • Simulator

      public Simulator()
  • Method Details

    • setProtocolStack

      public void setProtocolStack(Protocol[] stack)
    • dumpStats

      public 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 Object send(Event evt)
    • receive

      public void receive(Event evt)
    • start

      public void start() throws Exception
      Throws:
      Exception
    • stop

      public void stop()