Package org.zeroturnaround.exec.stop
Class DestroyProcessStopper
java.lang.Object
org.zeroturnaround.exec.stop.DestroyProcessStopper
- All Implemented Interfaces:
ProcessStopper
Default
ProcessStopper
implementation that just invokes Process.destroy()
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProcessStopper
Singleton instance of theDestroyProcessStopper
. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
Singleton instance of theDestroyProcessStopper
.
-
-
Constructor Details
-
DestroyProcessStopper
public DestroyProcessStopper()
-
-
Method Details
-
stop
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 interfaceProcessStopper
- Parameters:
process
- sub process being stopped (notnull
).
-