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
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 fromstderr
.void
onStdoutLineReceived(ProcessObserver.ObservedProcess process, String line, ProgressMonitor pm)
Called if a new text line that has been received fromstdout
.
-
-
-
Method Detail
-
onObservationStarted
void onObservationStarted(ProcessObserver.ObservedProcess process, ProgressMonitor pm)
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
void onStdoutLineReceived(ProcessObserver.ObservedProcess process, String line, ProgressMonitor pm)
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
void onStderrLineReceived(ProcessObserver.ObservedProcess process, String line, ProgressMonitor pm)
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.
-
-