Class LogWatcher
java.lang.Object
org.jenkinsci.test.acceptance.log.LogWatcher
- All Implemented Interfaces:
LogListener
Receives log as
LogListener
, and provides a regular expression pattern matching.- Author:
- Vivek Pandey, Kohsuke Kawaguchi
-
Field Summary
Modifier and TypeFieldDescriptionprotected final LogSplitter
All the listeners in here isLogWatcher.Watcher
s. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Indicates the EOF.void
processLine
(String line) Receives log output from Jenkins process one line at a time, in the order.Starts watching an expression in the output.
-
Field Details
-
splitter
All the listeners in here isLogWatcher.Watcher
s.
-
-
Constructor Details
-
LogWatcher
public LogWatcher()
-
-
Method Details
-
processLine
Description copied from interface:LogListener
Receives log output from Jenkins process one line at a time, in the order.- Specified by:
processLine
in interfaceLogListener
- Throws:
IOException
-
processClose
Description copied from interface:LogListener
Indicates the EOF.- Specified by:
processClose
in interfaceLogListener
- Parameters:
t
- if the termination of log source is unexpected, indicate the cause of the problem.
-
watch
Starts watching an expression in the output.Returned future will signal when the expression is found.
-