Class 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)
    • 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 interface com.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 interface com.github.fracpete.processoutput4j.core.StreamingProcessOwner
        Parameters:
        line - the line to process
        stdout - whether stdout or stderr