Package buildbot :: Package schedulers :: Module basic :: Class BaseBasicScheduler
[frames] | no frames]

Class BaseBasicScheduler

source code

 twisted.application.service.Service --+        
                                       |        
twisted.application.service.MultiService --+    
                                           |    
                    util.ComparableMixin --+    
                                           |    
                          base.BaseScheduler --+
                                               |
                                              BaseBasicScheduler
Known Subclasses:

Nested Classes
  NotSet
Instance Methods
 
__init__(self, name, shouldntBeSet=<class buildbot.schedulers.basic.NotSet at 0x3a740b8>, treeStableTimer=None, builderNames=None, branch=NotABranch, branches=NotABranch, fileIsImportant=None, properties={}, categories=None, change_filter=None, onlyImportant=False)
Initialize a Scheduler.
source code
 
getChangeFilter(self, branch, branches, change_filter, categories) source code
 
startService(self, _returnDeferred=False) source code
 
stopService(self) source code
 
gotChange(*args, **kwargs)
Called when a change is received; returns a Deferred.
source code
 
scanExistingClassifiedChanges(*args, **kwargs) source code
 
getTimerNameForChange(self, change) source code
 
getChangeClassificationsForTimer(self, objectid, timer_name)
similar to db.schedulers.getChangeClassifications, but given timer name
source code
 
stableTimerFired(*args, **kwargs) source code

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

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', 'treeSt...

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, shouldntBeSet=<class buildbot.schedulers.basic.NotSet at 0x3a740b8>, treeStableTimer=None, builderNames=None, branch=NotABranch, branches=NotABranch, fileIsImportant=None, properties={}, categories=None, change_filter=None, onlyImportant=False)
(Constructor)

source code 

Initialize a Scheduler.

Parameters:
  • onlyImportant (boolean) - If True, only important changes will be added to the buildset.
Overrides: twisted.application.service.MultiService.__init__

startService(self, _returnDeferred=False)

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

stopService(self)

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

gotChange(*args, **kwargs)

source code 

Called when a change is received; returns a Deferred. If the fileIsImportant parameter to startConsumingChanges was None, then all changes are considered important.

Parameters:
  • change - the new change object
  • important - true if this is an important change, according to fileIsImportant.
Returns:
Deferred
Decorators:
  • @util.deferredLocked('_stable_timers_lock')
Overrides: base.BaseScheduler.gotChange
(inherited documentation)

scanExistingClassifiedChanges(*args, **kwargs)

source code 
Decorators:
  • @defer.deferredGenerator

stableTimerFired(*args, **kwargs)

source code 
Decorators:
  • @util.deferredLocked('_stable_timers_lock')
  • @defer.deferredGenerator

Class Variable Details

compare_attrs

Value:
('name',
 'builderNames',
 'properties',
 'treeStableTimer',
 'change_filter',
 'fileIsImportant',
 'onlyImportant')