Package org.jgroups.debug

Examples of org.jgroups.debug.Simulator


    private void createStack(Protocol[] stack) throws Exception {
        a1=Util.createRandomAddress();
        members=new Vector<Address>();
        members.add(a1);
        v=new View(a1, 1, members);
        simulator=new Simulator();
        simulator.setLocalAddress(a1);
        simulator.setView(v);
        simulator.addMember(a1);
        simulator.setProtocolStack(stack);
        simulator.start();
View Full Code Here


    public void setUp() throws Exception {
        a1=UUID.randomUUID();
        members=new Vector<Address>();
        members.add(a1);
        v=new View(a1, 1, members);
        s=new Simulator();
        s.setLocalAddress(a1);
        s.setView(v);
        s.addMember(a1);
        bottom_prot=new PING();
        VIEW_SYNC view_sync=new VIEW_SYNC();
View Full Code Here

    void setUp() throws Exception {
        IpAddress a1=new IpAddress(1111);
        Vector<Address> members=new Vector<Address>();
        members.add(a1);
        View v=new View(a1, 1, members);
        s=new Simulator();
        s.setLocalAddress(a1);
        s.setView(v);
        s.addMember(a1);
        FC fc=new FC();
        fc.setMinCredits(1000);
View Full Code Here

  }

  private void createSimulator(Simulator[] simulators, View view, Address[] addresses, DELAY[] layers, Protocol[][] stacks, int i) {

    // create the simulator instance
    simulators[i] = new Simulator();
    simulators[i].setLocalAddress(addresses[i]);
    simulators[i].setView(view);

    // set up a dummy passthrough layer using DELAY
    layers[i] = new DELAY();
View Full Code Here

    void setUp() throws Exception {
        a1=new IpAddress(1111);
        members=new Vector<Address>();
        members.add(a1);
        v=new View(a1, 1, members);
        s=new Simulator();
        s.setLocalAddress(a1);
        s.setView(v);
        s.addMember(a1);
        FRAG2 frag=new FRAG2();
        frag.setFragSize(512);
View Full Code Here

        for(int i=0; i < NUM_PEERS; i++) {

            // create the simulator instance

            // at this stage, the ProtocolAdapter should be created and the timer present
            simulators[i]=new Simulator();
            simulators[i].setLocalAddress(addresses[i]);
            simulators[i].setView(view);

            // set up the protocol under test
            layers[i]=new NAKACK();
View Full Code Here

    private void createStack(Protocol[] stack) throws Exception {
        a1=new IpAddress(1111);
        members=new Vector();
        members.add(a1);
        v=new View(a1, 1, members);
        s=new Simulator();
        s.setLocalAddress(a1);
        s.setView(v);
        s.addMember(a1);
        s.setProtocolStack(stack);
        s.start();
View Full Code Here

        super.setUp();
        a1=new IpAddress(1111);
        members=new Vector();
        members.add(a1);
        v=new View(a1, 1, members);
        s=new Simulator();
        s.setLocalAddress(a1);
        s.setView(v);
        s.addMember(a1);
        Protocol frag=createProtocol();
        System.out.println("protocol to be tested: " + frag);
View Full Code Here

        super.setUp();
        a1=new IpAddress(1111);
        members=new Vector();
        members.add(a1);
        v=new View(a1, 1, members);
        s=new Simulator();
        s.setLocalAddress(a1);
        s.setView(v);
        s.addMember(a1);
        FC fc=new FC();
        Properties props=new Properties();
View Full Code Here

        super.setUp();
        a1=new IpAddress(1111);
        members=new Vector();
        members.add(a1);
        v=new View(a1, 1, members);
        s=new Simulator();
        s.setLocalAddress(a1);
        s.setView(v);
        s.addMember(a1);
        Protocol frag=createProtocol();
        System.out.println("protocol to be tested: " + frag);
View Full Code Here

TOP

Related Classes of org.jgroups.debug.Simulator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.