Package buildbot :: Package schedulers :: Module triggerable :: Class Triggerable
[frames] | no frames]

Class Triggerable

source code

 twisted.application.service.Service --+        
                                       |        
twisted.application.service.MultiService --+    
                                           |    
                    util.ComparableMixin --+    
                                           |    
                          base.BaseScheduler --+
                                               |
                                              Triggerable

Instance Methods
 
__init__(self, name, builderNames, properties={})
Initialize a Scheduler.
source code
 
trigger(self, ss_setid, set_props=None)
Trigger this scheduler with the given sourcestampset ID.
source code
 
stopService(self) source code

Inherited from base.BaseScheduler: __provides__, addBuildsetForChanges, addBuildsetForChangesMultiRepo, addBuildsetForLatest, addBuildsetForSourceStamp, findNewSchedulerInstance, getPendingBuildTimes, getState, gotChange, listBuilderNames, setState, startConsumingChanges, startService

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

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

Inherited from util.ComparableMixin: __cmp__, __hash__

Class Variables
  compare_attrs = ('name', 'builderNames', 'properties')

Inherited from base.BaseScheduler: __implemented__

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

Instance Variables

Inherited from base.BaseScheduler: builderNames, name, properties

Method Details

__init__(self, name, builderNames, properties={})
(Constructor)

source code 

Initialize a Scheduler.

Parameters:
  • name - name of this scheduler (used as a key for state)
  • builderNames - list of builders this scheduler may start
  • properties - properties to add to builds triggered by this scheduler
  • consumeChanges - true if this scheduler wishes to be informed about the addition of new changes. Defaults to False. This should be passed explicitly from subclasses to indicate their interest in consuming changes.
Overrides: twisted.application.service.MultiService.__init__

trigger(self, ss_setid, set_props=None)

source code 

Trigger this scheduler with the given sourcestampset ID. Returns a deferred that will fire when the buildset is finished.

stopService(self)

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