com.atlassian.bamboo.command
Class StreamToLogsPumper
java.lang.Object
com.atlassian.bamboo.command.StreamToLogsPumper
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- ErrorStreamToLogsPumper
public class StreamToLogsPumper
- extends Object
- implements Runnable
This class pumps the contents of an input stream into the build logs only (i.e. not to a list). It is designed to be executed within a thread.
Basically a variation of the Ant StreamPumper that puts in the output in the logs
Method Summary |
protected void |
log(String line)
|
protected void |
pump(BufferedReader reader)
Pump the reader into logs |
void |
run()
Convert the input stream into a list within the thread |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buildLogger
protected final BuildLogger buildLogger
planKey
protected final String planKey
StreamToLogsPumper
public StreamToLogsPumper(InputStream inputStream,
BuildLogger buildLogger,
String planKey)
- Pump the given inputStream into the given outputList
- Parameters:
inputStream
- input data streambuildLogger
- planKey
-
StreamToLogsPumper
public StreamToLogsPumper(InputStream inputStream,
BuildLogger buildLogger,
String planKey,
boolean filterDownloadStatusMessages)
run
public void run()
- Convert the input stream into a list within the thread
- Specified by:
run
in interface Runnable
pump
protected void pump(BufferedReader reader)
throws IOException
- Pump the reader into logs
- Parameters:
reader
- The reader
- Throws:
IOException
- Something went wrong
log
protected void log(@NotNull
String line)
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.