|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scale7.cassandra.pelops.pool.CachePerNodePool.Policy
public static class CachePerNodePool.Policy
Constructor Summary | |
---|---|
CachePerNodePool.Policy()
|
Method Summary | |
---|---|
Integer |
getConnectionTimeout()
The timeout value passed to the org.apache.thrift.transport.TSocket constructor. |
int |
getDefaultTargetRefillCheckPause()
|
boolean |
getDynamicNodeDiscovery()
|
int |
getMaxConnectionsPerNode()
|
int |
getMaxGetConnectionRetryDelay()
|
int |
getMaxGetConnectionRetryWait()
|
int |
getMinCachedConnectionsPerNode()
|
int |
getMinGetConnectionRetryDelay()
|
int |
getTargetConnectionsPerNode()
|
boolean |
isKillNodeConnsOnException()
|
void |
setConnectionTimeout(Integer connectionTimeout)
The timeout value passed to the org.apache.thrift.transport.TSocket constructor. |
void |
setDynamicNodeDiscovery(boolean dynamicNodeDiscovery)
If dynamic node discovery is switched on, Pelops will periodically attempt to discover the current set of nodes comprising the complete cluster. |
void |
setKillNodeConnsOnException(boolean killNodeConnsOnException)
On some networks, for some unknown reason, the Thrift TSocket is not able to detect when it has been disconnected. |
void |
setMaxConnectionsPerNode(int maxConnectionsPerNode)
Set the maximum number of connections per node we will allow to exist. |
void |
setMinCachedConnectionsPerNode(int minCachedConnectionsPerNode)
Set the minimum cached connections per node. |
void |
setTargetConnectionsPerNode(int targetConnectionsPerNode)
Set the total number of connections per node we would like to hold in hand. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachePerNodePool.Policy()
Method Detail |
---|
public boolean getDynamicNodeDiscovery()
public void setDynamicNodeDiscovery(boolean dynamicNodeDiscovery)
listen_address
in
their cassandra.yaml configuration (this option controls what node addresses are reported to Pelops).
dynamicNodeDiscovery
- The value for dynamic node discovery featurepublic void setMinCachedConnectionsPerNode(int minCachedConnectionsPerNode)
public int getMinCachedConnectionsPerNode()
public void setTargetConnectionsPerNode(int targetConnectionsPerNode)
public int getTargetConnectionsPerNode()
public void setMaxConnectionsPerNode(int maxConnectionsPerNode)
public int getMaxConnectionsPerNode()
public int getMinGetConnectionRetryDelay()
public int getMaxGetConnectionRetryDelay()
public int getMaxGetConnectionRetryWait()
public int getDefaultTargetRefillCheckPause()
public boolean isKillNodeConnsOnException()
public void setKillNodeConnsOnException(boolean killNodeConnsOnException)
public Integer getConnectionTimeout()
public void setConnectionTimeout(Integer connectionTimeout)
If null (default) the default Thrift value will be used.
connectionTimeout
- the timeout value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |