org.zeroturnaround.exec.stop
Interface ProcessStopper

All Known Implementing Classes:
DestroyProcessStopper, NopProcessStopper

public interface ProcessStopper

Abstraction for stopping sub processes.

This is used in case a process runs too long (timeout is reached) or it's cancelled via Future.cancel(boolean).


Method Summary
 void stop(Process process)
          Stops a given sub process.
 

Method Detail

stop

void stop(Process process)
Stops a given sub process. It does not wait for the process to actually stop and it has no guarantee that the process terminates.

Parameters:
process - sub process being stopped (not null).


Copyright © 2015 ZeroTurnaround. All rights reserved.