Package com.basho.riak.pbc

Examples of com.basho.riak.pbc.RiakClient


     * @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);
    }
View Full Code Here


                                                               hostAddress, conf.getPort(),
                                                               conf.getConnectionWaitTimeoutMillis(),
                                                               conf.getSocketBufferSizeKb(),
                                                               conf.getIdleConnectionTTLMillis());

        return new PBClientAdapter(new RiakClient(pool));
    }
View Full Code Here

            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()]);
    }
View Full Code Here

                                                               conf.getConnectionWaitTimeoutMillis(),
                                                               conf.getSocketBufferSizeKb(),
                                                               conf.getIdleConnectionTTLMillis());

        pool.start();
        return new PBClientAdapter(new RiakClient(pool));
    }
View Full Code Here

     * @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);
    }
View Full Code Here

        }

        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()]);
    }
View Full Code Here

     * @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);
    }
View Full Code Here

     * @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);
    }
View Full Code Here

{
  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;
  }
View Full Code Here

     * @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);
    }
View Full Code Here

TOP

Related Classes of com.basho.riak.pbc.RiakClient

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.