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
FieldsModifier and TypeFieldDescriptionprotected final LogSplitterAll the listeners in here isLogWatcher.Watchers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidIndicates the EOF.voidprocessLine(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.Watchers.
-
-
Constructor Details
-
LogWatcher
public LogWatcher()
-
-
Method Details
-
processLine
Description copied from interface:LogListenerReceives log output from Jenkins process one line at a time, in the order.- Specified by:
processLinein interfaceLogListener- Throws:
IOException
-
processClose
Description copied from interface:LogListenerIndicates the EOF.- Specified by:
processClosein 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.
-