Interface ClientCommandRunner.OutputObserver

Enclosing class:
ClientCommandRunner

public static interface ClientCommandRunner.OutputObserver
a ClientCommandRunner.OutputObserver will be notified when ClientCommandRunner reads a new line from stdout or stderr of the running oc process
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    This method will be called every time the ClientCommandRunner reads a line from the stdout/stderr from the remote `oc` process.
  • Method Details

    • onReadLine

      boolean onReadLine(String line) throws IOException, InterruptedException
      This method will be called every time the ClientCommandRunner reads a line from the stdout/stderr from the remote `oc` process.
      Parameters:
      line - a line of output
      Returns:
      true to indicate the ClientCommandRunner to interrupt the `oc` process immediately.
      Throws:
      IOException - when I/O error
      InterruptedException - when the reading threads are interrupted