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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
from zope.interface import implements
from buildbot.interfaces import IStatusLog, ILogFile, LOG_CHANNEL_STDOUT
class ExLogFile():
implements(IStatusLog, ILogFile)
log = None
realname = None
@property
def finished(self):
return self.log.finished
@property
def length(self):
return self.log.length
@property
def nonHeaderLength(self):
return self.log.nonHeaderLength
@property
def tailLength(self):
return self.log.tailLength
@property
def chunkSize(self):
return self.log.chunkSize
@property
def runLength(self):
return self.log.runLength
@property
def logMaxSize(self):
return self.log.logMaxSize
@property
def logMaxTailSize(self):
return self.log.logMaxTailSize
@property
def maxLengthExceeded(self):
return self.log.maxLengthExceeded
@property
def runEntries(self):
return self.log.runEntries
@property
def entries(self):
return self.log.entries
@property
def BUFFERSIZE(self):
return self.log.BUFFERSIZE
@property
def filename(self):
return self.log.filename
@property
def openfile(self):
return self.log.openfile
@property
def compressMethod(self):
return self.log.compressMethod
def __init__(self, log, realname):
self.log = log
self.realname = realname
def getName(self):
return self.realname
def getStep(self):
return self.log.getStep()
def isFinished(self):
return self.log.isFinished()
def waitUntilFinished(self):
return self.log.waitUntilFinished()
def subscribe(self, receiver, catchup):
return self.log.subscribe(receiver, catchup)
def unsubscribe(self, receiver):
return self.log.unsubscribe(receiver)
def subscribeConsumer(self, consumer):
return self.log.subscribeConsumer(consumer)
def hasContents(self):
return self.log.hasContents()
def getText(self):
return self.log.getText()
def readlines(self, channel=LOG_CHANNEL_STDOUT):
return self.log.readlines(channel)
def getTextWithHeaders(self):
return self.log.getTextWithHeaders()
def getChunks(self):
return self.log.getChunks()
def addStdout(self,data):
return self.log.addStdout(data)
def addStderr(self,data):
return self.log.addStderr(data)
def addHeader(self,data):
return self.log.addHeader(data)
def finish(self):
return self.log.finish()
|