Package com.hellblazer.gossip

Examples of com.hellblazer.gossip.Gossip


    @Test
    public void testFullConfiguration() throws Exception {
        InputStream is = getClass().getResourceAsStream("/yaml/fullConfig.yml");
        GossipConfiguration config = YamlHelper.fromYaml(is);
        assertNotNull(config);
        Gossip gossip = config.construct();
        assertNotNull(gossip);
    }
View Full Code Here


    @Test
    public void testMinimalConfiguration() throws Exception {
        InputStream is = getClass().getResourceAsStream("/yaml/minimalConfig.yml");
        GossipConfiguration config = YamlHelper.fromYaml(is);
        assertNotNull(config);
        Gossip gossip = config.construct();
        assertNotNull(gossip);
    }
View Full Code Here

        Random entropy = new Random();
        UdpCommunications comms = constructUdpComms();
        SystemView view = new SystemView(entropy, comms.getLocalAddress(),
                                         seeds, quarantineDelay,
                                         unreachableDelay);
        return new Gossip(Generators.timeBasedGenerator(), comms, view,
                          getFdFactory(), entropy, gossipInterval, gossipUnit,
                          cleanupCycles, heartbeatCycle, redundancy);
    }
View Full Code Here

TOP

Related Classes of com.hellblazer.gossip.Gossip

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.