Package org.jgroups.protocols

Examples of org.jgroups.protocols.UNICAST$ConnectionReaper


    }

    @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});
View Full Code Here


        s.stop();
    }


    public void testReceptionOfAllMessages() throws Throwable {
        UNICAST unicast=new UNICAST();
        Properties props=new Properties();
        props.setProperty("timeout", "500,1000,2000,3000");
        unicast.setProperties(props);
        Protocol[] stack=new Protocol[]{unicast};
        createStack(stack);
        _testReceptionOfAllMessages();
    }
View Full Code Here

        _testReceptionOfAllMessages();
    }


    public void testReceptionOfAllMessagesWithDISCARD() throws Throwable {
        UNICAST unicast=new UNICAST();
        Properties props=new Properties();
        props.setProperty("timeout", "500,1000,2000,3000");
        unicast.setProperties(props);

        DISCARD discard=new DISCARD();
        props.clear();
        props.setProperty("down", "0.1"); // discard all down message with 10% probability
        discard.setProperties(props);
View Full Code Here

            simulator.stop();
    }


    public void testReceptionOfAllMessages() throws Throwable {
        UNICAST unicast=new UNICAST();
        Properties props=new Properties();
        props.setProperty("timeout", "500,1000,2000,3000");
        unicast.setProperties(props);
        Protocol[] stack=new Protocol[]{unicast};
        createStack(stack);
        _testReceptionOfAllMessages();
    }
View Full Code Here

        _testReceptionOfAllMessages();
    }


    public void testReceptionOfAllMessagesWithDISCARD() throws Throwable {
        UNICAST unicast=new UNICAST();
        Properties props=new Properties();
        props.setProperty("timeout", "500,1000,2000,3000");
        unicast.setProperties(props);

        DISCARD discard=new DISCARD();
        props.clear();
        props.setProperty("down", "0.1"); // discard all down message with 10% probability
        discard.setProperties(props);
View Full Code Here

    protected void setUp() throws Exception {
        super.setUp();
        channel=new JChannel("udp.xml");
        channel.connect("demo-group");
        UNICAST ucast=(UNICAST)channel.getProtocolStack().findProtocol(UNICAST.class);
        cache=ucast != null? ucast.getAgeOutCache() : null;
        if(cache != null)
            cache.setTimeout(1000);
    }
View Full Code Here

TOP

Related Classes of org.jgroups.protocols.UNICAST$ConnectionReaper

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.