org.zeroturnaround.exec.stop
Class DestroyProcessStopper

java.lang.Object
  extended by org.zeroturnaround.exec.stop.DestroyProcessStopper
All Implemented Interfaces:
ProcessStopper

public class DestroyProcessStopper
extends Object
implements ProcessStopper

Default ProcessStopper implementation that just invokes Process.destroy().


Field Summary
static ProcessStopper INSTANCE
          Singleton instance of the DestroyProcessStopper.
 
Constructor Summary
DestroyProcessStopper()
           
 
Method Summary
 void stop(Process process)
          Stops a given sub process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final ProcessStopper INSTANCE
Singleton instance of the DestroyProcessStopper.

Constructor Detail

DestroyProcessStopper

public DestroyProcessStopper()
Method Detail

stop

public void stop(Process process)
Description copied from interface: ProcessStopper
Stops a given sub process. It does not wait for the process to actually stop and it has no guarantee that the process terminates.

Specified by:
stop in interface ProcessStopper
Parameters:
process - sub process being stopped (not null).


Copyright © 2015 ZeroTurnaround. All rights reserved.