Class 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.11.2.1 2008/05/22 13:23:10 belaban Exp $
    Author:
    Bela Ban
    • 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)
      • setLocalAddress

        public void setLocalAddress​(Address addr)
      • setView

        public void setView​(View v)
      • send

        public java.lang.Object 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()