|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.scale7.cassandra.pelops.pool.ThriftPoolBase
org.scale7.cassandra.pelops.pool.CachePerNodePool
CommonsBackedPool instead
@Deprecated public class CachePerNodePool
Provides intelligent pooling of Thrift connections to the Cassandra cluster including balancing the load created by actual client activity. This is achieved by balancing those connections actually engaged in writing requests or reading responses evenly across the cluster's nodes. Later versions may also poll cluster nodes to detect response times in order to further improve connection distribution.
| Nested Class Summary | |
|---|---|
static class |
CachePerNodePool.Policy
Deprecated. |
class |
CachePerNodePool.PooledConnection
Deprecated. Encapsulates a connection to a Cassandra node. |
| Nested classes/interfaces inherited from interface org.scale7.cassandra.pelops.pool.IThriftPool |
|---|
IThriftPool.IPooledConnection |
| Field Summary |
|---|
| Fields inherited from interface org.scale7.cassandra.pelops.pool.CachePerNodePoolMBean |
|---|
JMX_MBEAN_OBJ_NAME |
| Constructor Summary | |
|---|---|
CachePerNodePool(Cluster cluster,
String keyspace,
OperandPolicy generalPolicy,
CachePerNodePool.Policy poolPolicy)
Deprecated. Constructs a pool instance. |
|
| Method Summary | |
|---|---|
long |
getCacheConnNotSelectedCount()
Deprecated. |
long |
getCacheConnSelectedCount()
Deprecated. |
long |
getConnAddToCacheCount()
Deprecated. |
long |
getConnCannotOpenCount()
Deprecated. |
long |
getConnClosedCount()
Deprecated. |
long |
getConnCreatedCount()
Deprecated. |
long |
getConnCreateExceptionCount()
Deprecated. |
IThriftPool.IPooledConnection |
getConnection()
Deprecated. Get a Cassandra connection to the least loaded node represented in the connection pool. |
IThriftPool.IPooledConnection |
getConnectionExcept(String notNode)
Deprecated. Get a Cassandra connection to the least loaded node represented in the connection pool. |
long |
getConnOpenedCount()
Deprecated. |
long |
getConnReleaseCalledCount()
Deprecated. |
long |
getConnReturnedToCacheCount()
Deprecated. |
long |
getConnSelectedAlreadyOpenCount()
Deprecated. |
long |
getConnSelectedNotAlreadyOpenCount()
Deprecated. |
long |
getDeadConnCount()
Deprecated. |
long |
getGetConnBackoffCount()
Deprecated. |
long |
getGetConnCount()
Deprecated. |
String |
getKeyspace()
Deprecated. The keyspace this connection operates on. |
long |
getLeastLoadedNotSelectedCount()
Deprecated. |
long |
getLeastLoadedSelectedCount()
Deprecated. |
long |
getNetworkExceptionCount()
Deprecated. |
OperandPolicy |
getOperandPolicy()
Deprecated. Get the current policy in force, which controls the general behavior of pelops. |
CachePerNodePool.Policy |
getPoolPolicy()
Deprecated. Get the current policy in force, which controls the behavioral parameters of the connection pool. |
long |
getPurgeAllSessionConnsCount()
Deprecated. |
long |
getRefillBackoffCount()
Deprecated. |
long |
getRefillNeedConnCount()
Deprecated. |
void |
shutdown()
Deprecated. Cleanly shutdown this pool and associated Thrift connections and operations. |
| Methods inherited from class org.scale7.cassandra.pelops.pool.ThriftPoolBase |
|---|
createMutator, createMutator, createMutator, createMutator, createMutator, createRowDeletor, createRowDeletor, createSelector |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachePerNodePool(Cluster cluster,
String keyspace,
OperandPolicy generalPolicy,
CachePerNodePool.Policy poolPolicy)
cluster - the cluster info to connect tokeyspace - the keyspace to use (note: as of 0.7.0 this is basically a required parameter)generalPolicy - the general pelops policypoolPolicy - the pool policy| Method Detail |
|---|
public IThriftPool.IPooledConnection getConnection()
throws NoConnectionsAvailableException
getConnection in interface IThriftPoolNoConnectionsAvailableException
public IThriftPool.IPooledConnection getConnectionExcept(String notNode)
throws NoConnectionsAvailableException
getConnectionExcept in interface IThriftPoolnotNode - A node to try and avoid, for example because using it just failed
Exception
NoConnectionsAvailableExceptionpublic void shutdown()
shutdown in interface IThriftPoolpublic CachePerNodePool.Policy getPoolPolicy()
public OperandPolicy getOperandPolicy()
getOperandPolicy in interface IThriftPoolpublic String getKeyspace()
IThriftPool
getKeyspace in interface IThriftPoolpublic long getGetConnCount()
getGetConnCount in interface CachePerNodePoolMBeanpublic long getLeastLoadedSelectedCount()
getLeastLoadedSelectedCount in interface CachePerNodePoolMBeanpublic long getLeastLoadedNotSelectedCount()
getLeastLoadedNotSelectedCount in interface CachePerNodePoolMBeanpublic long getCacheConnNotSelectedCount()
getCacheConnNotSelectedCount in interface CachePerNodePoolMBeanpublic long getCacheConnSelectedCount()
getCacheConnSelectedCount in interface CachePerNodePoolMBeanpublic long getConnSelectedAlreadyOpenCount()
getConnSelectedAlreadyOpenCount in interface CachePerNodePoolMBeanpublic long getConnSelectedNotAlreadyOpenCount()
getConnSelectedNotAlreadyOpenCount in interface CachePerNodePoolMBeanpublic long getConnCannotOpenCount()
getConnCannotOpenCount in interface CachePerNodePoolMBeanpublic long getConnClosedCount()
getConnClosedCount in interface CachePerNodePoolMBeanpublic long getConnCreatedCount()
getConnCreatedCount in interface CachePerNodePoolMBeanpublic long getConnReleaseCalledCount()
getConnReleaseCalledCount in interface CachePerNodePoolMBeanpublic long getConnAddToCacheCount()
getConnAddToCacheCount in interface CachePerNodePoolMBeanpublic long getConnCreateExceptionCount()
getConnCreateExceptionCount in interface CachePerNodePoolMBeanpublic long getConnOpenedCount()
getConnOpenedCount in interface CachePerNodePoolMBeanpublic long getConnReturnedToCacheCount()
getConnReturnedToCacheCount in interface CachePerNodePoolMBeanpublic long getDeadConnCount()
getDeadConnCount in interface CachePerNodePoolMBeanpublic long getNetworkExceptionCount()
getNetworkExceptionCount in interface CachePerNodePoolMBeanpublic long getPurgeAllSessionConnsCount()
getPurgeAllSessionConnsCount in interface CachePerNodePoolMBeanpublic long getRefillBackoffCount()
getRefillBackoffCount in interface CachePerNodePoolMBeanpublic long getRefillNeedConnCount()
getRefillNeedConnCount in interface CachePerNodePoolMBeanpublic long getGetConnBackoffCount()
getGetConnBackoffCount in interface CachePerNodePoolMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||