Package buildbot :: Module scheduler :: Class AnyBranchScheduler
[frames | no frames]

Class AnyBranchScheduler

ComparableMixin --+        
                  |        
    Service --+   |        
              |   |        
   MultiService --+        
                  |        
      BaseScheduler --+    
                      |    
  BaseUpstreamScheduler --+
                          |
                         AnyBranchScheduler


This Scheduler will handle changes on a variety of branches. It will accumulate Changes for each branch separately. It works by creating a separate Scheduler for each new branch it sees.
Method Summary
  __init__(self, name, branches, treeStableTimer, builderNames, fileIsImportant)
  __repr__(self)
  addChange(self, change)
  getPendingBuildTimes(self)
  listBuilderNames(self)
  submitBuildSet(self, bs)
    Inherited from BaseUpstreamScheduler
  buildSetFinished(self, bss)
  submit(self, bs)
  subscribeToSuccessfulBuilds(self, watcher)
  unsubscribeToSuccessfulBuilds(self, watcher)
    Inherited from MultiService
  __iter__(self)
  addService(self, service)
  getServiceNamed(self, name)
  privilegedStartService(self)
  removeService(self, service)
  startService(self)
  stopService(self)
    Inherited from Service
  __getstate__(self)
  disownServiceParent(self)
  setName(self, name)
  setServiceParent(self, parent)
    Inherited from ComparableMixin
  __cmp__(self, them)
  __hash__(self)

Class Variable Summary
tuple compare_attrs = ('name', 'branches', 'treeStableTimer', ...
NoneType fileIsImportant = None                                                                  
classobj schedulerFactory = buildbot.scheduler.Scheduler
    Inherited from BaseUpstreamScheduler
Implements __implemented__ = <implementedBy buildbot.scheduler.Base...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
    Inherited from Service
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
NoneType name = None                                                                  
NoneType parent = None                                                                  
int running = 0                                                                     

Method Details

__init__(self, name, branches, treeStableTimer, builderNames, fileIsImportant=None)
(Constructor)

Parameters:
name - the name of this Scheduler
branches - The branch names that the Scheduler should pay attention to. Any Change that is not on one of these branches will be ignored. It can be set to None to accept changes from any branch. Don't use [] (an empty list), because that means we don't pay attention to *any* branches, so we'll never build anything.
treeStableTimer - the duration, in seconds, for which the tree must remain unchanged before a build will be triggered. This is intended to avoid builds of partially-committed fixes.
builderNames - a list of Builder names. When this Scheduler decides to start a set of builds, they will be run on the Builders named by this list.
fileIsImportant - A callable which takes one argument (a Change instance) and returns True if the change is worth building, and False if it is not. Unimportant Changes are accumulated until the build is triggered by an important change. The default value of None means that all Changes are important.
Overrides:
buildbot.scheduler.BaseUpstreamScheduler.__init__

Class Variable Details

compare_attrs

Type:
tuple
Value:
('name', 'branches', 'treeStableTimer', 'builderNames', 'fileIsImporta\
nt')                                                                   

fileIsImportant

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Sun Dec 10 22:04:44 2006 http://epydoc.sf.net