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

Class ZeoPoolBase

CmdBase --+    
          |    
  ZenDaemon --+
              |
             ZeoPoolBase


A multi-threaded daemon that maintains a pool of zeo connections that it can hand out to its worker threads.
Method Summary
  __init__(self, noopts, app, keeproot)
  available(self)
Return the number of available connection in our pool.
  buildOptions(self)
basic options setup sub classes can add more options here
  closedb(self)
Close all connections in both free an inuse pools.
  getConnection(self, path)
Return a connection from the connection pool.
  getPoolSize(self)
Return the target max pool size for this database.
  is_connected(self)
Are we connected to zeo.
  opendb(self)
Inherited from ZenDaemon: becomeDaemon, changeUser, setupLogging, sigTerm
Inherited from CmdBase: buildParser, parseOptions

Class Variable Summary
Inherited from ZenDaemon: pidfile
Inherited from CmdBase: doesLogging

Method Details

available(self)

Return the number of available connection in our pool.

buildOptions(self)

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

closedb(self)

Close all connections in both free an inuse pools.

getConnection(self, path=None)

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

getPoolSize(self)

Return the target max pool size for this database.

is_connected(self)

Are we connected to zeo.

Generated by Epydoc 2.1 on Thu Aug 16 09:55:15 2007 http://epydoc.sf.net