Class DestroyerListenerAdapter

java.lang.Object
org.zeroturnaround.exec.listener.ProcessListener
org.zeroturnaround.exec.listener.DestroyerListenerAdapter

public class DestroyerListenerAdapter extends ProcessListener
Process event handler that wraps a process destroyer.
See Also:
  • Field Details

  • Constructor Details

    • DestroyerListenerAdapter

      public DestroyerListenerAdapter(ProcessDestroyer destroyer)
  • Method Details

    • afterStart

      public void afterStart(Process process, ProcessExecutor executor)
      Description copied from class: ProcessListener
      Invoked after a process has started.
      Overrides:
      afterStart in class ProcessListener
      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.
    • afterStop

      public void afterStop(Process process)
      Description copied from class: ProcessListener
      Invoked after a process has exited (whether finished or cancelled).
      Overrides:
      afterStop in class ProcessListener
      Parameters:
      process - process just stopped.