Package de.zib.scalaris

Examples of de.zib.scalaris.RoundRobinConnectionPolicy


    public static void minibench(final int operations, final int threadsPerNode, final Set<Integer> benchmarks) {
        final ConnectionFactory cf = ConnectionFactory.getInstance();
        final List<PeerNode> nodes = cf.getNodes();
        final int parallelRuns = nodes.size();
        // set a connection policy that goes through the available nodes in a round-robin fashion:
        cf.setConnectionPolicy(new RoundRobinConnectionPolicy(nodes));
        System.out.println("Number of available nodes: " + nodes.size());
        System.out.println("-> Using " + parallelRuns + " parallel instances per test run...");
        long[][] results;
        String[] columns;
        String[] rows;
View Full Code Here


        Random random = new Random();
        String clientName = new BigInteger(128, random).toString(16);
        this.cFactory.setClientName("wiki_import_" + clientName);
        this.cFactory.setClientNameAppendUUID(true);
        this.cFactory.setConnectionPolicy(
                new RoundRobinConnectionPolicy(this.cFactory.getNodes()));
    }
View Full Code Here

TOP

Related Classes of de.zib.scalaris.RoundRobinConnectionPolicy

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.