Package com.basho.riak.client.http

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


    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

                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

Related Classes of com.basho.riak.client.http.RiakConfig

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.