com.basho.riak.client.raw.http
Class HTTPClusterConfig

java.lang.Object
  extended by com.basho.riak.client.raw.config.ClusterConfig<HTTPClientConfig>
      extended by com.basho.riak.client.raw.http.HTTPClusterConfig
All Implemented Interfaces:
Configuration

public class HTTPClusterConfig
extends ClusterConfig<HTTPClientConfig>

Concrete child of ClusterConfig that provides the generic type

Author:
russell

Field Summary
 
Fields inherited from class com.basho.riak.client.raw.config.ClusterConfig
UNLIMITED_CONNECTIONS
 
Constructor Summary
HTTPClusterConfig(int totalMaximumConnections)
           
 
Method Summary
 ClusterConfig<HTTPClientConfig> addHosts(HTTPClientConfig config, String... hosts)
          Convenience method for creating a cluster of hosts with a common config except for host
 ClusterConfig<HTTPClientConfig> addHosts(String... hosts)
          Convenience method for creating a cluster of hosts with a common, default config except for host
 
Methods inherited from class com.basho.riak.client.raw.config.ClusterConfig
addClient, getClients, getTotalMaximumConnections
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPClusterConfig

public HTTPClusterConfig(int totalMaximumConnections)
Parameters:
totalMaximumConnections -
Method Detail

addHosts

public ClusterConfig<HTTPClientConfig> addHosts(String... hosts)
Description copied from class: ClusterConfig
Convenience method for creating a cluster of hosts with a common, default config except for host

Specified by:
addHosts in class ClusterConfig<HTTPClientConfig>
Parameters:
hosts - var arg String array of hosts
Returns:
the ClusterConfig with a node for each host in hosts

addHosts

public ClusterConfig<HTTPClientConfig> addHosts(HTTPClientConfig config,
                                                String... hosts)
Description copied from class: ClusterConfig
Convenience method for creating a cluster of hosts with a common config except for host

Specified by:
addHosts in class ClusterConfig<HTTPClientConfig>
Parameters:
config - T the common base config
hosts - var arg String array of hosts
Returns:
the ClusterConfig with a node for each host in hosts


Copyright © 2012. All Rights Reserved.