Package org.jgroups.protocols

Examples of org.jgroups.protocols.UNICAST2$SenderEntry


    @DataProvider
    public static Object[][] configProvider() {
        Object[][] retval=new Object[][] {
                {new UNICAST()},
                {new UNICAST2()}
        };

        ((UNICAST)retval[0][0]).setTimeout(new long[]{500,1000,2000,3000});
        ((UNICAST2)retval[1][0]).setTimeout(new long[]{500,1000,2000,3000});
        return retval;
View Full Code Here


    }


    private static void sendUnicastStableMessages(JChannel ... channels) {
        for(JChannel ch: channels) {
            UNICAST2 unicast=(UNICAST2)ch.getProtocolStack().findProtocol(UNICAST2.class);
            if(unicast != null)
                unicast.sendStableMessages();
        }
    }
View Full Code Here

        .addProtocol(new PING())
        .addProtocol(new MERGE2())
        .addProtocol(new FD_SOCK())
        .addProtocol(new FD_ALL().setValue("timeout", 12000).setValue("interval", 3000))
        .addProtocol(new VERIFY_SUSPECT()).addProtocol(new BARRIER())
        .addProtocol(new NAKACK()).addProtocol(new UNICAST2())
        .addProtocol(new STABLE()).addProtocol(new GMS())
        .addProtocol(new UFC()).addProtocol(new MFC())
        .addProtocol(new FRAG2());
    stack.init();
   
View Full Code Here

        .addProtocol(new PING())
        .addProtocol(new MERGE2())
        .addProtocol(new FD_SOCK())
        .addProtocol(new FD_ALL().setValue("timeout", 12000).setValue("interval", 3000))
        .addProtocol(new VERIFY_SUSPECT()).addProtocol(new BARRIER())
        .addProtocol(new NAKACK()).addProtocol(new UNICAST2())
        .addProtocol(new STABLE()).addProtocol(new GMS())
        .addProtocol(new UFC()).addProtocol(new MFC())
        .addProtocol(new FRAG2());
    stack.init();
   
View Full Code Here

        }
    }

    protected static void stable(JChannel... channels) {
        for(JChannel ch: channels) {
            UNICAST2 unicast2=(UNICAST2)ch.getProtocolStack().findProtocol(UNICAST2.class);
            if(unicast2 != null)
                unicast2.sendStableMessages();
        }
    }
View Full Code Here

    }


    private static void sendUnicastStableMessages(JChannel ... channels) {
        for(JChannel ch: channels) {
            UNICAST2 unicast=(UNICAST2)ch.getProtocolStack().findProtocol(UNICAST2.class);
            if(unicast != null)
                unicast.sendStableMessages();
        }
    }
View Full Code Here

    private static void sendStableMessages(JChannel ... channels) {
        for(JChannel ch: channels) {
            STABLE stable=(STABLE)ch.getProtocolStack().findProtocol(STABLE.class);
            if(stable != null)
                stable.gc();
            UNICAST2 uni=(UNICAST2)ch.getProtocolStack().findProtocol(UNICAST2.class);
            if(uni != null)
                uni.sendStableMessages();
        }
    }
View Full Code Here

TOP

Related Classes of org.jgroups.protocols.UNICAST2$SenderEntry

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.