Package buildbot :: Package process :: Module builder :: Class AbstractSlaveBuilder
[frames] | no frames]

Class AbstractSlaveBuilder

source code

 twisted.spread.jelly.Jellyable --+        
                                  |        
twisted.spread.flavors.Serializable --+    
                                      |    
   twisted.spread.flavors.Referenceable --+
                                          |
                                         AbstractSlaveBuilder
Known Subclasses:

I am the master-side representative for one of the buildbot.slave.bot.SlaveBuilder objects that lives in a remote buildbot. When a remote builder connects, I query it for command versions and then make it available to any Builds that are ready to run.

Instance Methods
 
__init__(self) source code
 
__repr__(self) source code
 
setBuilder(self, b) source code
 
getSlaveCommandVersion(self, command, oldversion=None) source code
 
isAvailable(self) source code
 
isBusy(self) source code
 
buildStarted(self) source code
 
buildFinished(self) source code
 
attached(self, slave, remote, commands) source code
 
prepare(self, builder_status) source code
 
ping(self, status=None)
Ping the slave to make sure it is still there.
source code
 
detached(self) source code

Inherited from twisted.spread.flavors.Referenceable: jellyFor, remoteMessageReceived

Inherited from twisted.spread.flavors.Serializable: processUniqueID

Inherited from twisted.spread.jelly.Jellyable: __providedBy__, getStateFor

Class Variables

Inherited from twisted.spread.flavors.Referenceable: __implemented__, __provides__, perspective

Method Details

attached(self, slave, remote, commands)

source code 
Parameters:
  • slave (buildbot.buildslave.BuildSlave) - the BuildSlave that represents the buildslave as a whole
  • remote (twisted.spread.pb.RemoteReference) - a reference to the buildbot.slave.bot.SlaveBuilder
  • commands (dict: string -> string, or None) - provides the slave's version of each RemoteCommand

ping(self, status=None)

source code 

Ping the slave to make sure it is still there. Returns a Deferred that fires with True if it is.

Parameters:
  • status - if you point this at a BuilderStatus, a 'pinging' event will be pushed.