Interface LogCommandOutput

All Superinterfaces:
Callable<CommandOutput>, CommandOutput
All Known Implementing Classes:
AbstractLogCommandOutput, AbstractLogCommandOutput.DebugLogCommandOutput, AbstractLogCommandOutput.ErrorLogCommandOutput, AbstractLogCommandOutput.InfoLogCommandOutput, AbstractLogCommandOutput.TraceLogCommandOutput

public interface LogCommandOutput extends CommandOutput
Pipes the read data from the output of the command to a logger.
Since:
3.1
Author:
Erwin Mueller, erwin.mueller@deventm.org
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the command for the logging message.
    Returns the command line for the logging message.
    Returns the stream that is connected to output of the executed command.
    org.slf4j.Logger
    Returns the logger that is filled with the piped to the output of the command.
    Returns the message string.
    void
    setBufferSize(int size)
    Sets the buffer size.
    void
    setLogger(org.slf4j.Logger logger)
    Sets the logger that is filled with the piped to the output of the command.
    void
    setMessage(String message)
    Sets the message string.

    Methods inherited from interface com.anrisoftware.globalpom.exec.external.core.CommandOutput

    call, clone, setInput
  • Method Details

    • getInput

      InputStream getInput()
      Returns the stream that is connected to output of the executed command.
      Returns:
      the InputStream.
    • setBufferSize

      void setBufferSize(int size)
      Sets the buffer size.
      Parameters:
      size - the size in bytes.
    • setLogger

      void setLogger(org.slf4j.Logger logger)
      Sets the logger that is filled with the piped to the output of the command.
      Parameters:
      logger - the Logger.
    • getLogger

      org.slf4j.Logger getLogger()
      Returns the logger that is filled with the piped to the output of the command.
      Returns:
      the Logger.
    • getCommandLine

      CommandLine getCommandLine()
      Returns the command line for the logging message.
      Returns:
      the CommandLine.
    • getCommand

      String getCommand()
      Returns the command for the logging message.
      Returns:
      the String command.
    • setMessage

      void setMessage(String message)
      Sets the message string.
      Parameters:
      message - the String message.
    • getMessage

      String getMessage()
      Returns the message string.
      Returns:
      the String message.