Interface CommandHandlerSupport

All Known Subinterfaces:
CommandErrorHandler, CommandInputHandler, CommandOutputHandler<T>, CommandOutputHandlerSupport

public interface CommandHandlerSupport
Provides the common callback methods for input, output and error handlers which process the standard input, error or output stream from a Command.
Since:
8.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called when the process completes.
    void
    Set the watchdog that this handler should be resetting to prevent the process from being terminated.
  • Method Details

    • complete

      default void complete() throws IOException
      Called when the process completes. This call allows the output handler to close any open resources and finalize any processing.
      Throws:
      IOException - if there is a problem completing processing
    • setWatchdog

      void setWatchdog(@Nonnull Watchdog watchdog)
      Set the watchdog that this handler should be resetting to prevent the process from being terminated. The watchdog should be called periodically based on output generated by the process.
      Parameters:
      watchdog - process watchdog instance.