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 Details

    • 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 from stdout.
      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 from stderr.
      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 be null if unknown.
      pm - The progress monitor, that is used to monitor the progress of the running process.