blob: 0fcc01daedb1dc8b37ec0a015d262f2ea23e4238 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
Change Sources
==============
.. py:module:: buildbot.changes.base
ChangeSource
------------
.. py:class:: ChangeSource
This is the base class for change sources.
Subclasses should override the inherited :py:meth:`~buildbot.util.service.ClusteredService.activate` and :py:meth:`~buildbot.util.service.ClusteredService.deactivate` methods if necessary to handle initialization and shutdown.
Change sources which are active on every master should, instead, override ``startService`` and ``stopService``.
ReconfigurablePollingChangeSource
---------------------------------
.. py:class:: ReconfigurablePollingChangeSource
This is a subclass of :py:class:`ChangeSource` which adds polling behavior.
Its constructor accepts the ``pollInterval`` and ``pollAtLaunch`` arguments as documented for most built-in change sources.
Subclasses should override the ``poll`` method.
This method may return a Deferred.
Calls to ``poll`` will not overlap.
|