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

Class BotMaster

source code

       config.ReconfigurableServiceMixin --+
                                           |
 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
 
slaveLost(*args, **kwargs) source code
 
getBuildersForSlave(*args, **kwargs) source code
 
getBuildernames(self) source code
 
getBuilders(self) source code
 
startService(self) source code
 
reconfigService(*args, **kwargs) source code
 
reconfigServiceSlaves(*args, **kwargs) source code
 
reconfigServiceBuilders(*args, **kwargs) 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 config.ReconfigurableServiceMixin: __providedBy__, __provides__

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

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

Class Variables
  debug = 0

Inherited from config.ReconfigurableServiceMixin: __implemented__, reconfig_priority

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

Method Details

__init__(self, master)
(Constructor)

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

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

reconfigService(*args, **kwargs)

source code 
Decorators:
  • @defer.deferredGenerator
Overrides: config.ReconfigurableServiceMixin.reconfigService

reconfigServiceSlaves(*args, **kwargs)

source code 
Decorators:
  • @defer.deferredGenerator

reconfigServiceBuilders(*args, **kwargs)

source code 
Decorators:
  • @defer.deferredGenerator

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