Package adams.core.command
Class AsyncCapableExternalCommandOutputProcessor
- java.lang.Object
-
- adams.core.command.AsyncCapableExternalCommandOutputProcessor
-
- All Implemented Interfaces:
com.github.fracpete.processoutput4j.core.StreamingProcessOwner
public class AsyncCapableExternalCommandOutputProcessor extends Object implements com.github.fracpete.processoutput4j.core.StreamingProcessOwner
For collecting the output of the asynchronous docker command.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected AsyncCapableExternalCommand
m_Owner
the owning command.
-
Constructor Summary
Constructors Constructor Description AsyncCapableExternalCommandOutputProcessor(AsyncCapableExternalCommand owner)
Initializes the process output manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.fracpete.processoutput4j.core.StreamingProcessOutputType
getOutputType()
Returns what output from the process to forward.void
processOutput(String line, boolean stdout)
Processes the incoming line.
-
-
-
Field Detail
-
m_Owner
protected AsyncCapableExternalCommand m_Owner
the owning command.
-
-
Constructor Detail
-
AsyncCapableExternalCommandOutputProcessor
public AsyncCapableExternalCommandOutputProcessor(AsyncCapableExternalCommand owner)
Initializes the process output manager.- Parameters:
owner
- the owning command
-
-
Method Detail
-
getOutputType
public com.github.fracpete.processoutput4j.core.StreamingProcessOutputType getOutputType()
Returns what output from the process to forward.- Specified by:
getOutputType
in interfacecom.github.fracpete.processoutput4j.core.StreamingProcessOwner
- Returns:
- the output type
-
processOutput
public void processOutput(String line, boolean stdout)
Processes the incoming line.- Specified by:
processOutput
in interfacecom.github.fracpete.processoutput4j.core.StreamingProcessOwner
- Parameters:
line
- the line to processstdout
- whether stdout or stderr
-
-