Package com.basho.riak.client.raw.pbc

Examples of com.basho.riak.client.raw.pbc.PBClientConfig


                .expireAfterWrite(5, TimeUnit.MINUTES)
                .build();
        // Riak Protocol Buffers client with supplied IP and Port
        PBClusterConfig riakClusterConfig = new PBClusterConfig(20);
        // See above examples for client config options
        PBClientConfig riakClientConfig = PBClientConfig.defaults();
        //riakClusterConfig.addHosts(riakClientConfig, "192.168.1.102", "192.168.1.104", "192.168.1.105");
        riakClusterConfig.addHosts(riakClientConfig, riakIps);
        riakClient = RiakFactory.newClient(riakClusterConfig);

        liveStatisticsDao = new RiakLiveStatisticsDao(riakClient, metricHourCache);
View Full Code Here


            if( splitted.length > 1 )
            {
                host = splitted[0];
                port = Integer.valueOf( splitted[1] );
            }
            PBClientConfig clientConfig = new PBClientConfig.Builder().withConnectionTimeoutMillis( connectionTimeout ).
                withIdleConnectionTTLMillis( idleConnectionTTL ).
                withPoolSize( maxPoolSize ).
                withInitialPoolSize( initialPoolSize ).
                withSocketBufferSizeKb( socketBufferSize ).
                withHost( host ).withPort( port ).build();
View Full Code Here

TOP

Related Classes of com.basho.riak.client.raw.pbc.PBClientConfig

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.