Examples of RiakConfig


Examples of com.basho.riak.client.http.RiakConfig

                if (node.getRetryHandler() != null) {
                    httpClient.setHttpRequestRetryHandler(node.getRetryHandler());
                }

                RiakConfig riakConfig = new RiakConfig(node.getUrl());
                riakConfig.setMapReducePath(node.getMapreducePath());
                riakConfig.setTimeout(node.getTimeout());
                riakConfig.setHttpClient(httpClient);

                clients.add(new HTTPClientAdapter(new RiakClient(riakConfig)));
            }
        }
        return clients.toArray(new RawClient[clients.size()]);
View Full Code Here

Examples of com.basho.riak.client.http.RiakConfig

    public RawClient newClient(Configuration conf) {
        if (conf == null) {
            throw new IllegalArgumentException("conf cannot be null");
        }
        HTTPClientConfig config = (HTTPClientConfig) conf;
        RiakConfig riakConfig = new RiakConfig();
        riakConfig.setUrl(config.getUrl());
        riakConfig.setHttpClient(config.getHttpClient());
        riakConfig.setMapReducePath(config.getMapreducePath());
        riakConfig.setMaxConnections(config.getMaxConnections());
        riakConfig.setTimeout(config.getTimeout());
        riakConfig.setRetryHandler(config.getRetryHandler());

        return new HTTPClientAdapter(new RiakClient(riakConfig));
    }
View Full Code Here

Examples of com.basho.riak.client.http.RiakConfig

                if (node.getRetryHandler() != null) {
                    httpClient.setHttpRequestRetryHandler(node.getRetryHandler());
                }

                RiakConfig riakConfig = new RiakConfig(node.getUrl());
                riakConfig.setMapReducePath(node.getMapreducePath());
                riakConfig.setTimeout(node.getTimeout());
                riakConfig.setHttpClient(httpClient);

                clients.add(new HTTPClientAdapter(new RiakClient(riakConfig)));
            }
        }
        return clients.toArray(new RawClient[clients.size()]);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.