Package com.atlassian.bamboo.command
Class StreamToLogsPumper
java.lang.Object
com.atlassian.bamboo.command.StreamToLogsPumper
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ErrorStreamToLogsPumper
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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStreamToLogsPumper(InputStream inputStream, BuildLogger buildLogger, String planKey) Pump the given inputStream into the given outputListStreamToLogsPumper(InputStream inputStream, BuildLogger buildLogger, String planKey, boolean filterDownloadStatusMessages) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidpump(BufferedReader reader) Pump the reader into logsvoidrun()Convert the input stream into a list within the thread
-
Field Details
-
buildLogger
-
planKey
-
-
Constructor Details
-
StreamToLogsPumper
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)
-
-
Method Details
-
run
public void run()Convert the input stream into a list within the thread -
pump
Pump the reader into logs- Parameters:
reader- The reader- Throws:
IOException- Something went wrong
-
log
-