public static interface ProcessObserver.Handler
Modifier and Type | Method and Description |
---|---|
void |
onObservationEnded(ProcessObserver.ObservedProcess process,
Integer exitCode,
ProgressMonitor pm)
Called if the process is no longer being observed.
|
void |
onObservationStarted(ProcessObserver.ObservedProcess process,
ProgressMonitor pm)
Called if the process is started being observed.
|
void |
onStderrLineReceived(ProcessObserver.ObservedProcess process,
String line,
ProgressMonitor pm)
Called if a new text line that has been received from
stderr . |
void |
onStdoutLineReceived(ProcessObserver.ObservedProcess process,
String line,
ProgressMonitor pm)
Called if a new text line that has been received from
stdout . |
void onObservationStarted(ProcessObserver.ObservedProcess process, ProgressMonitor pm)
process
- The observed process.pm
- The progress monitor, that is used to monitor the progress of the running process.void onStdoutLineReceived(ProcessObserver.ObservedProcess process, String line, ProgressMonitor pm)
stdout
.process
- The observed process.line
- The line.pm
- The progress monitor, that is used to monitor the progress of the running process.void onStderrLineReceived(ProcessObserver.ObservedProcess process, String line, ProgressMonitor pm)
stderr
.process
- The observed process.line
- The line.pm
- The progress monitor, that is used to monitor the progress of the running process.void onObservationEnded(ProcessObserver.ObservedProcess process, Integer exitCode, ProgressMonitor pm)
process
- The observed process.exitCode
- The exit code, may be null
if unknown.pm
- The progress monitor, that is used to monitor the progress of the running process.Copyright © 2014–2016 European Space Agency (ESA). All rights reserved.