Examples of runMessageGarbageCollection()


Examples of org.jgroups.protocols.pbcast.STABLE.runMessageGarbageCollection()

    }

    private static void runStableProtocol(JChannel ch) {
        STABLE stable=(STABLE)ch.getProtocolStack().findProtocol(STABLE.class);
        if(stable != null)
            stable.runMessageGarbageCollection();
    }

    protected boolean isMulticastTransport(JChannel ch) {
        return ch.getProtocolStack().getTransport().supportsMulticasting();
    }
View Full Code Here

Examples of org.jgroups.protocols.pbcast.STABLE.runMessageGarbageCollection()

            for(JChannel ch: channels) {
                MyReceiver receiver=(MyReceiver)ch.getReceiver();
                int received=receiver.getReceived();
                System.out.println(ch.getAddress() + ": " + received);
                STABLE stable=(STABLE)ch.getProtocolStack().findProtocol(STABLE.class);
                stable.runMessageGarbageCollection();
                if(received != TOTAL_NUM_MSGS) {
                    done=false;
                    break;
                }
            }
View Full Code Here

Examples of org.jgroups.protocols.pbcast.STABLE.runMessageGarbageCollection()

            msg.setFlag(Message.OOB);
            c1.send(msg);
        }
        STABLE stable=(STABLE)c1.getProtocolStack().findProtocol(STABLE.class);
        if(stable != null)
            stable.runMessageGarbageCollection();
        Collection<Integer> msgs=receiver.getMsgs();

        for(int i=0; i < 20; i++) {
            if(msgs.size() == NUM)
                break;
View Full Code Here

Examples of org.jgroups.protocols.pbcast.STABLE.runMessageGarbageCollection()

    private static void sendStableMessages(JChannel ... channels) {
        for(JChannel ch: channels) {
            STABLE stable=(STABLE)ch.getProtocolStack().findProtocol(STABLE.class);
            if(stable != null)
                stable.runMessageGarbageCollection();
        }
    }

    private static class BlockingReceiver extends ReceiverAdapter {
        final Lock lock;
View Full Code Here

Examples of org.jgroups.protocols.pbcast.STABLE.runMessageGarbageCollection()

    private static void sendStableMessages(JChannel ... channels) {
        for(JChannel ch: channels) {
            STABLE stable=(STABLE)ch.getProtocolStack().findProtocol(STABLE.class);
            if(stable != null)
                stable.runMessageGarbageCollection();
        }
    }

    protected static void removeDUPL(JChannel ... channels) {
        for(JChannel ch: channels) {
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.