Package org.zeroturnaround.exec.listener
Class DestroyerListenerAdapter
java.lang.Object
org.zeroturnaround.exec.listener.ProcessListener
org.zeroturnaround.exec.listener.DestroyerListenerAdapter
Process event handler that wraps a process destroyer.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterStart
(Process process, ProcessExecutor executor) Invoked after a process has started.void
Invoked after a process has exited (whether finished or cancelled).Methods inherited from class org.zeroturnaround.exec.listener.ProcessListener
afterFinish, beforeStart
-
Field Details
-
destroyer
-
-
Constructor Details
-
DestroyerListenerAdapter
-
-
Method Details
-
afterStart
Description copied from class:ProcessListener
Invoked after a process has started.- Overrides:
afterStart
in classProcessListener
- Parameters:
process
- the process started.executor
- executor used for starting the process. Modifying theProcessExecutor
only affects the following processes not the one just started.
-
afterStop
Description copied from class:ProcessListener
Invoked after a process has exited (whether finished or cancelled).- Overrides:
afterStop
in classProcessListener
- Parameters:
process
- process just stopped.
-