|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.basho.riak.client.raw.config.ClusterConfig<T>
T - concrete Configuration typepublic abstract class ClusterConfig<T extends Configuration>
Abstract parent Configuration for a "cluster" of clients.
Holds a collection of Configurations, one for each node in a cluster.
Currently only supports homogeneous clusters.
| Field Summary | |
|---|---|
static int |
UNLIMITED_CONNECTIONS
Constant for specifying unlimited maximum connection |
| Constructor Summary | |
|---|---|
ClusterConfig(int totalMaximumConnections)
|
|
| Method Summary | |
|---|---|
ClusterConfig<T> |
addClient(T clientConfig)
Add a new client config to the collection of client in the cluster config |
protected abstract ClusterConfig<T> |
addHosts(String... hosts)
Convenience method for creating a cluster of hosts with a common, default config except for host |
protected abstract ClusterConfig<T> |
addHosts(T config,
String... hosts)
Convenience method for creating a cluster of hosts with a common config except for host |
List<T> |
getClients()
|
int |
getTotalMaximumConnections()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNLIMITED_CONNECTIONS
| Constructor Detail |
|---|
public ClusterConfig(int totalMaximumConnections)
totalMaximumConnections - the upper limit of connections for all nodes in the config
NOTE: set individual client limits in each client config| Method Detail |
|---|
public int getTotalMaximumConnections()
public ClusterConfig<T> addClient(T clientConfig)
nodeConfig - a node config to add
HTTPClientConfig,
PBClientConfigpublic List<T> getClients()
Configurations in
the cluster configurationprotected abstract ClusterConfig<T> addHosts(String... hosts)
hosts - var arg String array of hosts
ClusterConfig with a node for each host in
hosts
protected abstract ClusterConfig<T> addHosts(T config,
String... hosts)
config - T the common base confighosts - var arg String array of hosts
ClusterConfig with a node for each host in
hosts
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||