File: cls-changesources.rst

package info (click to toggle)
buildbot 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,080 kB
  • sloc: python: 174,183; sh: 1,204; makefile: 332; javascript: 119; xml: 16
file content (27 lines) | stat: -rw-r--r-- 979 bytes parent folder | download | duplicates (2)
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.