Home | Trees | Index | Help |
|
---|
Package twisted :: Package enterprise :: Module adbapi :: Class ConnectionPool |
|
Jellyable
--+ |Serializable
--+ |Referenceable
--+ | ConnectionPool
I represent a pool of connections to a DB-API 2.0 compliant database.
You can pass cp_min, cp_max or both to set the minimum and maximum number of connections that will be opened by the pool. You can pass the noisy arg which determines whether informational log messages are generated during the pool's operation.Method Summary | |
---|---|
See ConnectionPool.__doc__ | |
__getstate__(self)
| |
__setstate__(self,
state)
| |
Internal function. | |
_runInteraction(self,
interaction,
*args,
**kw)
| |
_runOperation(self,
*args,
**kw)
| |
_runQuery(self,
*args,
**kw)
| |
Close all pool connections and shutdown the pool. | |
Return a database connection when one becomes available. | |
This should only be called by the shutdown trigger. | |
| |
interaction(self,
interaction,
callback,
errback,
*args,
**kw)
| |
(internal) | |
operation(self,
callback,
errback,
*args,
**kw)
| |
Return an ID which uniquely represents this object for this process. | |
query(self,
callback,
errback,
*args,
**kw)
| |
A remote message has been received. | |
runInteraction(...)
| |
runOperation(...)
| |
runQuery(...)
| |
start(...)
| |
synchronousOperation(...)
|
Class Variable Summary | |
---|---|
int |
max = 5 |
int |
min = 3 |
int |
noisy = 1 |
int |
running = 0 |
Method Details |
---|
__init__(self,
dbapiName,
*connargs,
**connkw)
See ConnectionPool.__doc__
|
_deferToThread(self, f, *args, **kwargs)Internal function. Call f in one of the connection pool's threads. |
close(self)Close all pool connections and shutdown the pool. |
connect(self)Return a database connection when one becomes available. This method blocks and should be run in a thread from the internal threadpool. Don't call this method directly from non-threaded twisted code.
|
finalClose(self)This should only be called by the shutdown trigger. |
Class Variable Details |
---|
max
|
min
|
noisy
|
running
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat Oct 25 00:55:12 2003 | http://epydoc.sf.net |