Package co.paralleluniverse.galaxy.cluster

Examples of co.paralleluniverse.galaxy.cluster.DistributedTreeTKB


        try (CuratorFramework client = CuratorFrameworkFactory.builder().connectString("127.0.0.1:2181").
                sessionTimeoutMs(1500).connectionTimeoutMs(1000).retryPolicy(new ExponentialBackoffRetry(20, 20)).
                defaultData(new byte[0]).build()) {
            client.start();
            final String me = "node-" + Long.toHexString(new Random().nextLong());
            new DistributedTreeTKB(new ZooKeeperDistributedTree(client), me).run();
        }
    }
View Full Code Here


        jchannel.connect("test_tree_cluster", null, 10000);
        final Address myAddress = jchannel.getAddress();


        DistributedTreeTKB tkb = new DistributedTreeTKB(new DistributedTreeAdapter(tree), myAddress.toString());
        tkb.run();
    }
View Full Code Here

TOP

Related Classes of co.paralleluniverse.galaxy.cluster.DistributedTreeTKB

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.