Package buildbot :: Package status :: Module base
[frames] | no frames]

Source Code for Module buildbot.status.base

  1  # This file is part of Buildbot.  Buildbot is free software: you can 
  2  # redistribute it and/or modify it under the terms of the GNU General Public 
  3  # License as published by the Free Software Foundation, version 2. 
  4  # 
  5  # This program is distributed in the hope that it will be useful, but WITHOUT 
  6  # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
  7  # FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more 
  8  # details. 
  9  # 
 10  # You should have received a copy of the GNU General Public License along with 
 11  # this program; if not, write to the Free Software Foundation, Inc., 51 
 12  # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 
 13  # 
 14  # Copyright Buildbot Team Members 
 15   
 16   
 17  from zope.interface import implements 
 18  from twisted.application import service 
 19   
 20  from buildbot.interfaces import IStatusReceiver 
 21  from buildbot import util, pbutil 
 22   
23 -class StatusReceiverBase:
24 implements(IStatusReceiver) 25
26 - def requestSubmitted(self, request):
27 pass
28
29 - def requestCancelled(self, builder, request):
30 pass
31
32 - def buildsetSubmitted(self, buildset):
33 pass
34
35 - def builderAdded(self, builderName, builder):
36 pass
37
38 - def builderChangedState(self, builderName, state):
39 pass
40
41 - def buildStarted(self, builderName, build):
42 pass
43
44 - def buildETAUpdate(self, build, ETA):
45 pass
46
47 - def changeAdded(self, change):
48 pass
49
50 - def stepStarted(self, build, step):
51 pass
52
53 - def stepTextChanged(self, build, step, text):
54 pass
55
56 - def stepText2Changed(self, build, step, text2):
57 pass
58
59 - def stepETAUpdate(self, build, step, ETA, expectations):
60 pass
61
62 - def logStarted(self, build, step, log):
63 pass
64
65 - def logChunk(self, build, step, log, channel, text):
66 pass
67
68 - def logFinished(self, build, step, log):
69 pass
70
71 - def stepFinished(self, build, step, results):
72 pass
73
74 - def buildFinished(self, builderName, build, results):
75 pass
76
77 - def builderRemoved(self, builderName):
78 pass
79
80 - def slaveConnected(self, slaveName):
81 pass
82
83 - def slaveDisconnected(self, slaveName):
84 pass
85
86 - def checkConfig(self, otherStatusReceivers, errors):
87 pass
88
89 -class StatusReceiverMultiService(StatusReceiverBase, service.MultiService, 90 util.ComparableMixin):
91
92 - def __init__(self):
93 service.MultiService.__init__(self)
94
95 -class StatusReceiverService(StatusReceiverBase, service.Service, 96 util.ComparableMixin):
97 pass
98 99 StatusReceiver = StatusReceiverService 100 101
102 -class StatusReceiverPerspective(StatusReceiver, pbutil.NewCredPerspective):
103 implements(IStatusReceiver)
104