|
||||||||||
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 policyMethod Detail |
---|
public IThriftPool.IPooledConnection getConnection() throws NoConnectionsAvailableException
getConnection
in interface IThriftPool
NoConnectionsAvailableException
public IThriftPool.IPooledConnection getConnectionExcept(String notNode) throws NoConnectionsAvailableException
getConnectionExcept
in interface IThriftPool
notNode
- A node to try and avoid, for example because using it just failed
Exception
NoConnectionsAvailableException
public void shutdown()
shutdown
in interface IThriftPool
public CachePerNodePool.Policy getPoolPolicy()
public OperandPolicy getOperandPolicy()
getOperandPolicy
in interface IThriftPool
public String getKeyspace()
IThriftPool
getKeyspace
in interface IThriftPool
public long getGetConnCount()
getGetConnCount
in interface CachePerNodePoolMBean
public long getLeastLoadedSelectedCount()
getLeastLoadedSelectedCount
in interface CachePerNodePoolMBean
public long getLeastLoadedNotSelectedCount()
getLeastLoadedNotSelectedCount
in interface CachePerNodePoolMBean
public long getCacheConnNotSelectedCount()
getCacheConnNotSelectedCount
in interface CachePerNodePoolMBean
public long getCacheConnSelectedCount()
getCacheConnSelectedCount
in interface CachePerNodePoolMBean
public long getConnSelectedAlreadyOpenCount()
getConnSelectedAlreadyOpenCount
in interface CachePerNodePoolMBean
public long getConnSelectedNotAlreadyOpenCount()
getConnSelectedNotAlreadyOpenCount
in interface CachePerNodePoolMBean
public long getConnCannotOpenCount()
getConnCannotOpenCount
in interface CachePerNodePoolMBean
public long getConnClosedCount()
getConnClosedCount
in interface CachePerNodePoolMBean
public long getConnCreatedCount()
getConnCreatedCount
in interface CachePerNodePoolMBean
public long getConnReleaseCalledCount()
getConnReleaseCalledCount
in interface CachePerNodePoolMBean
public long getConnAddToCacheCount()
getConnAddToCacheCount
in interface CachePerNodePoolMBean
public long getConnCreateExceptionCount()
getConnCreateExceptionCount
in interface CachePerNodePoolMBean
public long getConnOpenedCount()
getConnOpenedCount
in interface CachePerNodePoolMBean
public long getConnReturnedToCacheCount()
getConnReturnedToCacheCount
in interface CachePerNodePoolMBean
public long getDeadConnCount()
getDeadConnCount
in interface CachePerNodePoolMBean
public long getNetworkExceptionCount()
getNetworkExceptionCount
in interface CachePerNodePoolMBean
public long getPurgeAllSessionConnsCount()
getPurgeAllSessionConnsCount
in interface CachePerNodePoolMBean
public long getRefillBackoffCount()
getRefillBackoffCount
in interface CachePerNodePoolMBean
public long getRefillNeedConnCount()
getRefillNeedConnCount
in interface CachePerNodePoolMBean
public long getGetConnBackoffCount()
getGetConnBackoffCount
in interface CachePerNodePoolMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |