Package buildbot :: Package process :: Module botmaster :: Class BotMaster
[frames] | no frames]

Class BotMaster

source code

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

This is the master-side service which manages remote buildbot slaves. It provides them with BuildSlaves, and distributes build requests to them.

Instance Methods
 
__init__(self, master) source code
 
cleanShutdown(self, _reactor=reactor)
Shut down the entire process, once all currently-running builds are complete.
source code
 
cancelCleanShutdown(self)
Cancel a clean shutdown that is already in progress, if any
source code
 
loadConfig_Slaves(self, new_slaves) source code
 
addSlave(self, s) source code
 
removeSlave(*args, **kwargs) source code
 
slaveLost(*args, **kwargs) source code
 
getBuildersForSlave(*args, **kwargs) source code
 
getBuildernames(self) source code
 
getBuilders(self) source code
 
setBuilders(self, builders) source code
 
getPerspective(self, mind, slavename) source code
 
startService(self) source code
 
stopService(self) source code
 
getLockByID(self, lockid)
Convert a Lock identifier into an actual Lock instance.
source code
 
maybeStartBuildsForBuilder(self, buildername)
Call this when something suggests that a particular builder may now be available to start a build.
source code
 
maybeStartBuildsForSlave(self, slave_name)
Call this when something suggests that a particular slave may now be available to start a build.
source code
 
maybeStartBuildsForAllBuilders(self)
Call this when something suggests that this would be a good time to start some builds, but nothing more specific.
source code

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

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

Class Variables
  debug = 0
  reactor = reactor

Inherited from twisted.application.service.MultiService: __implemented__

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

Method Details

__init__(self, master)
(Constructor)

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

removeSlave(*args, **kwargs)

source code 
Decorators:
  • @metrics.countMethod('BotMaster.removeSlave()')

slaveLost(*args, **kwargs)

source code 
Decorators:
  • @metrics.countMethod('BotMaster.slaveLost()')

getBuildersForSlave(*args, **kwargs)

source code 
Decorators:
  • @metrics.countMethod('BotMaster.getBuildersForSlave()')

startService(self)

source code 
Overrides: twisted.application.service.Service.startService

stopService(self)

source code 
Overrides: twisted.application.service.Service.stopService

getLockByID(self, lockid)

source code 

Convert a Lock identifier into an actual Lock instance.

Parameters:
  • lockid - a locks.MasterLock or locks.SlaveLock instance
Returns:
a locks.RealMasterLock or locks.RealSlaveLock instance

maybeStartBuildsForBuilder(self, buildername)

source code 

Call this when something suggests that a particular builder may now be available to start a build.

Parameters:
  • buildername - the name of the builder

maybeStartBuildsForSlave(self, slave_name)

source code 

Call this when something suggests that a particular slave may now be available to start a build.

Parameters:
  • slave_name - the name of the slave