Interface ClientCommandRunner.OutputObserver
-
- Enclosing class:
- ClientCommandRunner
public static interface ClientCommandRunner.OutputObserver
aClientCommandRunner.OutputObserver
will be notified whenClientCommandRunner
reads a new line from stdout or stderr of the running oc process
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
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 Detail
-
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 errorInterruptedException
- when the reading threads are interrupted
-
-