Package buildbot :: Package db :: Module connector :: Class DBConnector
[frames] | no frames]

Class DBConnector

source code

 twisted.application.service.Service --+    
                                       |    
twisted.application.service.MultiService --+
                                           |
                                          DBConnector

The connection between Buildbot and its backend database. This is generally accessible as master.db, but is also used during upgrades.

Most of the interesting operations available via the connector are implemented in connector components, available as attributes of this object, and listed below.

Instance Methods
 
__init__(self, master, db_url, basedir) source code
 
doCleanup(self)
Perform any periodic database cleanup tasks.
source code

Inherited from twisted.application.service.MultiService: __iter__, __provides__, addService, getServiceNamed, privilegedStartService, removeService, startService, stopService

Inherited from twisted.application.service.Service: __getstate__, __providedBy__, disownServiceParent, setName, setServiceParent

Class Variables
  CLEANUP_PERIOD = 3600

Inherited from twisted.application.service.MultiService: __implemented__

Inherited from twisted.application.service.Service: name, parent, running

Method Details

__init__(self, master, db_url, basedir)
(Constructor)

source code 
Overrides: twisted.application.service.MultiService.__init__

doCleanup(self)

source code 

Perform any periodic database cleanup tasks.

Returns:
Deferred