Examples of stop()


Examples of org.jgroups.protocols.pbcast.NAKACK.stop()

        System.out.println("\nTime: " + time + " ms, " + Util.format(requests_sec) + " requests / sec\n");
        System.out.println("Delivered messages: " + delivered_msg_list.size());
        if(delivered_msg_list.size() < 100)
            System.out.println("Elements: " + delivered_msg_list);

        nak.stop();
        timer.stop();

        List<Long> results=new ArrayList<Long>(delivered_msg_list);

        if(oob)
View Full Code Here

Examples of org.jgroups.protocols.pbcast.NAKACK2.stop()

        System.out.println("\nTime: " + time + " ms, " + Util.format(requests_sec) + " requests / sec\n");
        System.out.println("Delivered messages: " + delivered_msg_list.size());
        if(delivered_msg_list.size() < 100)
            System.out.println("Elements: " + delivered_msg_list);

        nak.stop();

        List<Long> results=new ArrayList<Long>(delivered_msg_list);

        if(oob)
            Collections.sort(results);
View Full Code Here

Examples of org.jgroups.stack.GossipClient.stop()

                lastConnectException=null;
                break;
            }
            catch(Exception e) {
                if(client != null)
                    client.stop();
                lastConnectException=e;
                Thread.sleep(1000);
                crtms=System.currentTimeMillis();
            }
        }
View Full Code Here

Examples of org.jgroups.stack.GossipRouter.stop()

                 1, drm2.lookupReplicants(SERVICEB).size());

         // simulate a split of the partition
         log.info("DRMTestCase.testIsMasterReplica() - stopping GossipRouter");
         router.clear();   // temporary workaround for JGRP-1232
         router.stop();
         sleepThread(15000);
         log.info("router stopped, routing table = " + router.dumpRoutingTable() + ", partition1 view=" + partition1.getCurrentView().toString());
         assertTrue("router is stopped", !router.isStarted());
         assertTrue("router is NOT running", !router.isRunning());
View Full Code Here

Examples of org.jgroups.stack.Protocol.stop()

        if(harness != null) {
            List<Protocol> protocols=new LinkedList<Protocol>();
            p=harness;
            while(p != null) {
                protocols.add(p);
                p.stop();
                p=p.getDownProtocol();
            }
            p=harness;
            while(p != null) {               
                p.destroy();
View Full Code Here

Examples of org.jgroups.util.DefaultTimeScheduler.stop()

            win=new NakReceiverWindow(sender, this, 0, timer);
            start=System.currentTimeMillis();
            sendMessages(num_msgs);
        }
        finally {
            timer.stop();
        }
    }


    void sendMessages(int num_msgs) {
View Full Code Here

Examples of org.jgroups.util.ReusableThread.stop()

        System.out.println("Sleeping 2 secs");
        Util.sleep(2000);

        System.out.println("stop()");
        t.stop();
        System.out.println("stop() -- done");

        Util.printThreads();

        System.out.println("\nAssigning task 1");
View Full Code Here

Examples of org.jgroups.util.Scheduler.stop()

        Util.sleep(100);
        sch.addPrio(new MyThread("Gabi3"));
        Util.sleep(100);
        sch.addPrio(new MyThread("Gabi4"));
        Util.sleep(1000)// increase this if you want to see all thread running (and possibly completing)
        sch.stop();
    }

    public static void main(String[] args) {
        String[] testCaseName={SchedulerTest.class.getName()};
        junit.textui.TestRunner.main(testCaseName);
View Full Code Here

Examples of org.jgroups.util.TimeScheduler.stop()

            win=new NakReceiverWindow(sender, this, 0, timer);
            start=System.currentTimeMillis();
            sendMessages(num_msgs);
        }
        finally {
            timer.stop();
        }
    }


    void sendMessages(int num_msgs) {
View Full Code Here

Examples of org.jgroups.util.TimeScheduler3.stop()

        long diff=System.currentTimeMillis() - start;

        System.out.println("added messages: " + added + ", removed messages: " + removed);
        System.out.println("took " + diff + " ms to insert and remove " + NUM_MSGS + " messages");
        win.destroy();
        timer.stop();
    }


    protected static class Adder extends Thread {
        protected final NakReceiverWindow win;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.