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 --+    
                                           |    
                              object --+   |    
                                       |   |    
                   util.state.StateMixin --+    
                                           |    
                          base.BaseScheduler --+
                                               |
                                              BaseBasicScheduler
Known Subclasses:

Nested Classes
  NotSet
Instance Methods
 
__init__(self, name, shouldntBeSet=<class buildbot.schedulers.basic.NotSet at 0x3176598>, treeStableTimer=None, builderNames=None, branch=NotABranch(), branches=NotABranch(), fileIsImportant=None, properties={}, categories=None, change_filter=None, onlyImportant=False, **kwargs)
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
 
getPendingBuildTimes(self)
Returns a list of the next times that builds are scheduled, if known.
source code

Inherited from base.BaseScheduler: __provides__, addBuildsetForChanges, addBuildsetForLatest, addBuildsetForSourceStamp, addBuildsetForSourceStampDetails, addBuildsetForSourceStampSetDetails, findNewSchedulerInstance, listBuilderNames, 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__

Inherited from util.state.StateMixin: getState, setState

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  compare_attrs = ('name', 'builderNames', 'properties', 'codeba...

Inherited from base.BaseScheduler: DefaultCodebases, __implemented__

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

Instance Variables

Inherited from base.BaseScheduler: builderNames, name, properties

Properties

Inherited from object: __class__

Method Details

__init__(self, name, shouldntBeSet=<class buildbot.schedulers.basic.NotSet at 0x3176598>, treeStableTimer=None, builderNames=None, branch=NotABranch(), branches=NotABranch(), fileIsImportant=None, properties={}, categories=None, change_filter=None, onlyImportant=False, **kwargs)
(Constructor)

source code 

Initialize a Scheduler.

Parameters:
  • onlyImportant (boolean) - If True, only important changes will be added to the buildset.
Overrides: object.__init__
(inherited documentation)

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. The codebase of the change has always an entry in the codebases dictionary of the scheduler.

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.inlineCallbacks

stableTimerFired(*args, **kwargs)

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

getPendingBuildTimes(self)

source code 

Returns a list of the next times that builds are scheduled, if known.

Overrides: base.BaseScheduler.getPendingBuildTimes
(inherited documentation)

Class Variable Details

compare_attrs

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