Package PyFoam :: Package Execution :: Module AnalyzedWatcher :: Class AnalyzedWatcher
[show private | hide private]
[frames | no frames]

Class AnalyzedWatcher

AnalyzedCommon --+
                 |
  BasicWatcher --+
                 |
                AnalyzedWatcher


Method Summary
  __init__(self, filename, analyzer, silent, tailLength, sleep)
    Inherited from BasicWatcher
  getSize(self)
Return the current size (in bytes) of the file
  lineHandle(self, line)
called every time a new line is read
  start(self)
Reads the file and does the processing
  startHandle(self)
to be called before the program is started
  stopHandle(self)
called after the program has stopped
  tailingHandle(self)
called when the first line is output
    Inherited from AnalyzedCommon
  addAnalyzer(self, name, analyzer)
  getAnalyzer(self, name)
  getDirname(self)
Get the name of the directory where the data is written to
  getTime(self)
Get the execution time
  reset(self)
reset the analyzer
  tearDown(self)

Method Details

__init__(self, filename, analyzer, silent=False, tailLength=1000, sleep=0.10000000000000001)
(Constructor)

Parameters:
filename - name of the logfile to watch
analyzer - analyzer
silent - if True no output is sent to stdout
tailLength - number of bytes at the end of the fail that should be output. Because data is output on a per-line-basis
sleep - interval to sleep if no line is returned
Overrides:
PyFoam.Execution.BasicWatcher.BasicWatcher.__init__

Generated by Epydoc 2.1 on Mon Jan 22 23:52:48 2007 http://epydoc.sf.net