com.basho.riak.client.raw.pbc
Class PBClusterConfig

java.lang.Object
  extended by com.basho.riak.client.raw.config.ClusterConfig<PBClientConfig>
      extended by com.basho.riak.client.raw.pbc.PBClusterConfig
All Implemented Interfaces:
Configuration

public class PBClusterConfig
extends ClusterConfig<PBClientConfig>

ClusterConfig implementation that provides PBClientConfig as the generic type.

Author:
russell

Field Summary
 
Fields inherited from class com.basho.riak.client.raw.config.ClusterConfig
UNLIMITED_CONNECTIONS
 
Constructor Summary
PBClusterConfig(int totalMaximumConnections)
           
 
Method Summary
 ClusterConfig<PBClientConfig> addHosts(PBClientConfig config, String... hosts)
          Convenience method for creating a cluster of hosts with a common config except for host
 ClusterConfig<PBClientConfig> 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

PBClusterConfig

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

addHosts

public ClusterConfig<PBClientConfig> 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<PBClientConfig>
Parameters:
hosts - var arg String array of hosts
Returns:
the ClusterConfig with a node for each host in hosts

addHosts

public ClusterConfig<PBClientConfig> addHosts(PBClientConfig 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<PBClientConfig>
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.