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 ProcessDestroyerdestroyer
-
Constructor Summary
Constructors Constructor Description DestroyerListenerAdapter(ProcessDestroyer destroyer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterStart(java.lang.Process process, ProcessExecutor executor)Invoked after a process has started.voidafterStop(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:ProcessListenerInvoked after a process has started.- Overrides:
afterStartin classProcessListener- Parameters:
process- the process started.executor- executor used for starting the process. Modifying theProcessExecutoronly affects the following processes not the one just started.
-
afterStop
public void afterStop(java.lang.Process process)
Description copied from class:ProcessListenerInvoked after a process has exited (whether finished or cancelled).- Overrides:
afterStopin classProcessListener- Parameters:
process- process just stopped.
-
-