Package com.basho.riak.client.core

Examples of com.basho.riak.client.core.RiakCluster


     */
    public static RiakClient newClient() throws UnknownHostException
    {
        RiakNode.Builder builder = new RiakNode.Builder()
                                        .withMinConnections(10);
        RiakCluster cluster = new RiakCluster.Builder(builder.build()).build();
        cluster.start();
        return new RiakClient(cluster);
       
    }
View Full Code Here


    {
        RiakNode.Builder builder = new RiakNode.Builder()
                                        .withRemotePort(port)
                                        .withMinConnections(10);
        List<RiakNode> nodes = RiakNode.Builder.buildNodes(builder, remoteAddresses);
        RiakCluster cluster = new RiakCluster.Builder(nodes).build();
        cluster.start();
        return new RiakClient(cluster);
    }
View Full Code Here

        RiakNode.Builder builder = new RiakNode.Builder()
                                        .withRemotePort(10001)
                                        .withConnectionTimeout(500)
                                        .withMinConnections(10);
       
        RiakCluster cluster = new RiakCluster.Builder(builder.build()).build();
        cluster.start();
       
        PingOperation ping = new PingOperation();
        cluster.execute(ping);
        ping.await();
       
        assertFalse(ping.isSuccess());
        assertNotNull(ping.cause());
       
        cluster.shutdown();
       
    }
View Full Code Here

     */
    public static RiakClient newClient() throws UnknownHostException
    {
        RiakNode.Builder builder = new RiakNode.Builder()
                                        .withMinConnections(10);
        RiakCluster cluster = new RiakCluster.Builder(builder.build()).build();
        cluster.start();
        return new RiakClient(cluster);
       
    }
View Full Code Here

    {
        RiakNode.Builder builder = new RiakNode.Builder()
                                        .withRemotePort(port)
                                        .withMinConnections(10);
        List<RiakNode> nodes = RiakNode.Builder.buildNodes(builder, remoteAddresses);
        RiakCluster cluster = new RiakCluster.Builder(nodes).build();
        cluster.start();
        return new RiakClient(cluster);
    }
View Full Code Here

        {
            builder.withRemoteAddress(addy.getHostString())
                   .withRemotePort(addy.getPort());
            nodes.add(builder.build());
        }
        RiakCluster cluster = new RiakCluster.Builder(nodes).build();
        cluster.start();
        return new RiakClient(cluster);
    }
View Full Code Here

TOP

Related Classes of com.basho.riak.client.core.RiakCluster

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.