Package org.zeroturnaround.exec.stop
Class NopProcessStopper
- java.lang.Object
-
- org.zeroturnaround.exec.stop.NopProcessStopper
-
- All Implemented Interfaces:
ProcessStopper
public class NopProcessStopper extends java.lang.Object implements ProcessStopper
ProcessStopper
implementation that does nothing - it keeps the process running.
-
-
Field Summary
Fields Modifier and Type Field Description static ProcessStopper
INSTANCE
Singleton instance of theNopProcessStopper
.
-
Constructor Summary
Constructors Constructor Description NopProcessStopper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
stop(java.lang.Process process)
Stops a given sub process.
-
-
-
Field Detail
-
INSTANCE
public static final ProcessStopper INSTANCE
Singleton instance of theNopProcessStopper
.
-
-
Method Detail
-
stop
public void stop(java.lang.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 interfaceProcessStopper
- Parameters:
process
- sub process being stopped (notnull
).
-
-