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 TypeMethodDescriptionboolean
onReadLine
(String line) This method will be called every time the ClientCommandRunner reads a line from the stdout/stderr from the remote `oc` process.
-
Method Details
-
onReadLine
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 errorInterruptedException
- when the reading threads are interrupted
-