[Buildbot-commits] buildbot/buildbot interfaces.py,1.42,1.43

Brian Warner warner at users.sourceforge.net
Thu Jun 15 05:47:16 UTC 2006


Update of /cvsroot/buildbot/buildbot/buildbot
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30613/buildbot

Modified Files:
	interfaces.py 
Log Message:
[project @ add ILogFile/ILogObserver]

Original author: warner at lothar.com
Date: 2006-06-15 01:10:55

Index: interfaces.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/interfaces.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- interfaces.py	15 Jun 2006 05:46:56 -0000	1.42
+++ interfaces.py	15 Jun 2006 05:47:13 -0000	1.43
@@ -893,3 +893,33 @@
     def stopBuild(reason="<no reason given>"):
         """Halt the build. This has no effect if the build has already
         finished."""
+
+class ILogFile(Interface):
+    """This is the internal interface to a LogFile, used by the BuildStep to
+    write data into the log.
+    """
+    def addStdout(data):
+        pass
+    def addStderr(data):
+        pass
+    def addHeader(data):
+        pass
+    def finish():
+        """The process that is feeding the log file has finished, and no
+        further data will be added. This closes the logfile."""
+
+class ILogObserver(Interface):
+    """Objects which provide this interface can be used in a BuildStep to
+    watch the output of a LogFile and parse it incrementally.
+    """
+
+    # internal methods
+    def setStep(step):
+        pass
+    def setLog(log):
+        pass
+
+    # methods called by the LogFile
+    def logChunk(build, step, log, channel, text):
+        pass
+





More information about the Commits mailing list