84858687888990
* @param port * the port number of the Riak pb interface * @throws IOException */ public PBClientAdapter(String host, int port) throws IOException { this.client = new RiakClient(host, port); }
83848586878889
86878889909192
69707172737475
conf.getSocketBufferSizeKb(), conf.getIdleConnectionTTLMillis(), conf.getRequestTimeoutMillis()); pool.start(); return new PBClientAdapter(new RiakClient(pool)); }
81828384858687
656667686970717273
} for (PBClientConfig node : clusterConfig.getClients()) { final RiakConnectionPool hostPool = makePool(clusterSemaphore, node); hostPool.start(); clients.add(new PBClientAdapter(new RiakClient(hostPool))); } return clients.toArray(new RawClient[clients.size()]); }