Class ProcessListener

    • Constructor Summary

      Constructors 
      Constructor Description
      ProcessListener()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterFinish​(java.lang.Process process, ProcessResult result)
      Invoked after a process has finished successfully.
      void afterStart​(java.lang.Process process, ProcessExecutor executor)
      Invoked after a process has started.
      void afterStop​(java.lang.Process process)
      Invoked after a process has exited (whether finished or cancelled).
      void beforeStart​(ProcessExecutor executor)
      Invoked before a process is started.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProcessListener

        public ProcessListener()
    • Method Detail

      • beforeStart

        public void beforeStart​(ProcessExecutor executor)
        Invoked before a process is started.
        Parameters:
        executor - executor used for starting a process. Any changes made here apply to the starting process. Once the process has started it is not affected by the ProcessExecutor any more.
      • afterStart

        public void afterStart​(java.lang.Process process,
                               ProcessExecutor executor)
        Invoked after a process has started.
        Parameters:
        process - the process started.
        executor - executor used for starting the process. Modifying the ProcessExecutor only affects the following processes not the one just started.
      • afterFinish

        public void afterFinish​(java.lang.Process process,
                                ProcessResult result)
        Invoked after a process has finished successfully.
        Parameters:
        process - process just finished.
        result - result of the finished process.
        Since:
        1.8
      • afterStop

        public void afterStop​(java.lang.Process process)
        Invoked after a process has exited (whether finished or cancelled).
        Parameters:
        process - process just stopped.