Package org.zeroturnaround.exec.listener
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:
ProcessDestroyer
-
-
Field Summary
Fields Modifier and Type Field Description private ProcessDestroyer
destroyer
-
Constructor Summary
Constructors Constructor Description DestroyerListenerAdapter(ProcessDestroyer destroyer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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).-
Methods inherited from class org.zeroturnaround.exec.listener.ProcessListener
afterFinish, beforeStart
-
-
-
-
Field Detail
-
destroyer
private final ProcessDestroyer destroyer
-
-
Constructor Detail
-
DestroyerListenerAdapter
public DestroyerListenerAdapter(ProcessDestroyer destroyer)
-
-
Method Detail
-
afterStart
public void afterStart(java.lang.Process process, ProcessExecutor executor)
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
public void afterStop(java.lang.Process process)
Description copied from class:ProcessListener
Invoked after a process has exited (whether finished or cancelled).- Overrides:
afterStop
in classProcessListener
- Parameters:
process
- process just stopped.
-
-