Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 9457b02689c69e152aa2cda68176fa51 > files > 223

buildbot-doc-0.8.4p1-2.fc16.noarch.rpm

<html lang="en">
<head>
<title>Writing a Change Poller - BuildBot Manual - 0.8.4p1</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="BuildBot Manual - 0.8.4p1">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Writing-Change-Sources.html#Writing-Change-Sources" title="Writing Change Sources">
<link rel="prev" href="Writing-a-Change-Source.html#Writing-a-Change-Source" title="Writing a Change Source">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This is the BuildBot manual for Buildbot version 0.8.4p1.

Copyright (C) 2005, 2006, 2009, 2010 Brian Warner

Copying and distribution of this file, with or without
modification, are permitted in any medium without royalty
provided the copyright notice and this notice are preserved.-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="Writing-a-Change-Poller"></a>
<p>
Previous:&nbsp;<a rel="previous" accesskey="p" href="Writing-a-Change-Source.html#Writing-a-Change-Source">Writing a Change Source</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Writing-Change-Sources.html#Writing-Change-Sources">Writing Change Sources</a>
<hr>
</div>

<h4 class="subsection">5.1.2 Writing a Change Poller</h4>

<p><a name="index-buildbot_002echanges_002ebase_002ePollingChangeSource-156"></a>
Polilng is a very common means of seeking changes, so Buildbot supplies a
utility parent class to make it easier.  A poller should subclass
<code>buildbot.changes.base.PollingChangeSource</code>, which is a subclass of
<code>ChangeSource</code>.  This subclass implements the <code>Service</code> methods, and
causes the <code>poll</code> method to be called every <code>self.pollInterval</code>
seconds.  This method should return a Deferred to signal its completion.

   <p>Aside from the service methods, the other concerns in the previous section
apply here, too.

   </body></html>