Package ZenUtils :: Module ZeoPoolBase :: Class ZeoPoolBase
[hide private]
[frames] | no frames]

Class ZeoPoolBase

source code

CmdBase.CmdBase --+    
                  |    
ZenDaemon.ZenDaemon --+
                      |
                     ZeoPoolBase

A multi-threaded daemon that maintains a pool of zeo connections that it can hand out to its worker threads.

Instance Methods [hide private]
 
__init__(self, noopts=0, app=None, keeproot=False) source code
 
getConnection(self, path=None)
Return a connection from the connection pool.
source code
 
opendb(self) source code
 
closedb(self)
Close all connections in both free an inuse pools.
source code
 
is_connected(self)
Are we connected to zeo.
source code
 
getPoolSize(self)
Return the target max pool size for this database.
source code
 
available(self)
Return the number of available connection in our pool.
source code
 
_getContext(self, app) source code
 
buildOptions(self)
basic options setup sub classes can add more options here
source code

Inherited from ZenDaemon.ZenDaemon: becomeDaemon, changeUser, setupLogging, sigTerm

Inherited from CmdBase.CmdBase: buildParser, generate_configs, generate_xml_table, parseOptions, pretty_print_config_comment

Class Variables [hide private]

Inherited from ZenDaemon.ZenDaemon: pidfile

Inherited from CmdBase.CmdBase: doesLogging

Method Details [hide private]

__init__(self, noopts=0, app=None, keeproot=False)
(Constructor)

source code 
Overrides: ZenDaemon.ZenDaemon.__init__

getConnection(self, path=None)

source code 
Return a connection from the connection pool. If path is passed return the object that the path points to.

buildOptions(self)

source code 
basic options setup sub classes can add more options here
Overrides: ZenDaemon.ZenDaemon.buildOptions