org.zeroturnaround.exec.listener
Class DestroyerListenerAdapter

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

public class DestroyerListenerAdapter
extends ProcessListener

Process event handler that wraps a process destroyer.

Author:
Rein Raudjärv
See Also:
ProcessDestroyer

Constructor Summary
DestroyerListenerAdapter(ProcessDestroyer destroyer)
           
 
Method Summary
 void afterStart(Process process, ProcessExecutor executor)
          Invoked after a process has started.
 void afterStop(Process process)
          Invoked after a process has exited (whether finished or cancelled).
 
Methods inherited from class org.zeroturnaround.exec.listener.ProcessListener
afterFinish, beforeStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DestroyerListenerAdapter

public DestroyerListenerAdapter(ProcessDestroyer destroyer)
Method Detail

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.


Copyright © 2015 ZeroTurnaround. All rights reserved.