Class LogSplitter
- java.lang.Object
-
- org.jenkinsci.test.acceptance.log.LogSplitter
-
- All Implemented Interfaces:
LogListenable
,LogListener
public class LogSplitter extends Object implements LogListenable, LogListener
Receives logs fromLogListener
and distributes them to otherLogListener
s.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description LogSplitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLogListener(LogListener l)
void
clear()
List<LogListener>
getListeners()
void
processClose(Exception t)
Indicates the EOF.void
processLine(String line)
Receives log output from Jenkins process one line at a time, in the order.void
removeLogListener(LogListener l)
-
-
-
Method Detail
-
addLogListener
public void addLogListener(LogListener l)
- Specified by:
addLogListener
in interfaceLogListenable
-
removeLogListener
public void removeLogListener(LogListener l)
- Specified by:
removeLogListener
in interfaceLogListenable
-
getListeners
public List<LogListener> getListeners()
-
processLine
public void processLine(String line) throws IOException
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
public void processClose(Exception t)
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.
-
clear
public void clear()
-
-