Package com.bc.ceres.core
Interface ProcessObserver.Handler
- All Known Implementing Classes:
ProcessObserver.DefaultHandler
- Enclosing class:
ProcessObserver
public static interface ProcessObserver.Handler
A handler that will be notified during the observation of the process.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onObservationEnded
(ProcessObserver.ObservedProcess process, Integer exitCode, ProgressMonitor pm) Called if the process is no longer being observed.void
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 fromstderr
.void
onStdoutLineReceived
(ProcessObserver.ObservedProcess process, String line, ProgressMonitor pm) Called if a new text line that has been received fromstdout
.
-
Method Details
-
onObservationStarted
Called if the process is started being observed.- Parameters:
process
- The observed process.pm
- The progress monitor, that is used to monitor the progress of the running process.
-
onStdoutLineReceived
Called if a new text line that has been received fromstdout
.- Parameters:
process
- The observed process.line
- The line.pm
- The progress monitor, that is used to monitor the progress of the running process.
-
onStderrLineReceived
Called if a new text line that has been received fromstderr
.- Parameters:
process
- The observed process.line
- The line.pm
- The progress monitor, that is used to monitor the progress of the running process.
-
onObservationEnded
void onObservationEnded(ProcessObserver.ObservedProcess process, Integer exitCode, ProgressMonitor pm) Called if the process is no longer being observed.- Parameters:
process
- The observed process.exitCode
- The exit code, may benull
if unknown.pm
- The progress monitor, that is used to monitor the progress of the running process.
-