83848586878889
* @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); }
67686970717273
hostAddress, conf.getPort(), conf.getConnectionWaitTimeoutMillis(), conf.getSocketBufferSizeKb(), conf.getIdleConnectionTTLMillis()); return new PBClientAdapter(new RiakClient(pool)); }
646566676869707172
clusterSemaphore = RiakConnectionPool.getSemaphore(totalMaxConnections); } for (PBClientConfig node : clusterConfig.getClients()) { final RiakConnectionPool hostPool = makePool(clusterSemaphore, node); clients.add(new PBClientAdapter(new RiakClient(hostPool))); } return clients.toArray(new RawClient[clients.size()]); }
68697071727374
conf.getConnectionWaitTimeoutMillis(), conf.getSocketBufferSizeKb(), conf.getIdleConnectionTTLMillis()); pool.start(); return new PBClientAdapter(new RiakClient(pool)); }
85868788899091
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()]); }
81828384858687
56575859606162636465
{ private RiakPBOperationFactory (final String riakHost, final int port, final String bucket, final String clientId) throws IOException { super (); this.riakcl = new RiakClient (riakHost, port); this.bucket = bucket; this.clientId = clientId; this.exceptions = FallbackExceptionTracer.defaultInstance; }
91929394959697