|
||||||||||
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.DebuggingPool
public class DebuggingPool
A basic non-pooled pool impl. A new connection is opened each time the getConnection()
or
getConnectionExcept(String)
is called.
This class is useful for diagnostics.
Nested Class Summary | |
---|---|
class |
DebuggingPool.PooledConnection
|
Nested classes/interfaces inherited from interface org.scale7.cassandra.pelops.pool.IThriftPool |
---|
IThriftPool.IPooledConnection |
Constructor Summary | |
---|---|
DebuggingPool(Cluster cluster,
String keyspace,
OperandPolicy generalPolicy)
|
Method Summary | |
---|---|
IThriftPool.IPooledConnection |
getConnection()
Get a connection from the pool. |
IThriftPool.IPooledConnection |
getConnectionExcept(String notNode)
Get a connection from the pool trying to avoid the node specified by the notNode param. |
String |
getKeyspace()
The keyspace this connection operates on. |
OperandPolicy |
getOperandPolicy()
Get the current policy in force, which controls the general behavior of pelops. |
void |
shutdown()
Shuts down the pool. |
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 DebuggingPool(Cluster cluster, String keyspace, OperandPolicy generalPolicy)
Method Detail |
---|
public IThriftPool.IPooledConnection getConnection() throws NoConnectionsAvailableException
IThriftPool
NoConnectionsAvailableException
public IThriftPool.IPooledConnection getConnectionExcept(String notNode) throws NoConnectionsAvailableException
IThriftPool
notNode
- the node to avoid if possible
NoConnectionsAvailableException
public void shutdown()
IThriftPool
public OperandPolicy getOperandPolicy()
IThriftPool
public String getKeyspace()
IThriftPool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |