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

# Class ZeoPoolBase

source code

         object --+
                  |
    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) Initializer that takes care of basic daemon options. | 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`: `audit`, `becomeDaemon`, `becomeWatchdog`, `changeUser`, `convertSocketOption`, `logname`, `niceDoggie`, `openPrivilegedPort`, `setupLogging`, `sigTerm`, `sighandler_USR1`, `watchdogCycleTime`, `watchdogMaxRestartTime`, `watchdogStartTimeout`, `writePidFile` Inherited from `ZenDaemon.ZenDaemon` (private): `_sigUSR1_called` Inherited from `CmdBase.CmdBase`: `buildParser`, `checkLogpath`, `generate_configs`, `generate_xml_configs`, `generate_xml_table`, `getConfigFileDefaults`, `getGlobalConfigFileDefaults`, `getParamatersFromConfig`, `loadConfigFile`, `parseOptions`, `pretty_print_config_comment`, `validateConfigFile`

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
Initializer that takes care of basic daemon options. Creates a PID file. Overrides: CmdBase.CmdBase.__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: CmdBase.CmdBase.buildOptions