Class DefaultProcessTerminator
- java.lang.Object
-
- de.gebit.integrity.runner.forking.processes.DefaultProcessTerminator
-
- All Implemented Interfaces:
ProcessTerminator
public class DefaultProcessTerminator extends Object implements ProcessTerminator
The standard process terminator implementation.- Author:
- Rene Schneider - initial API and implementation
-
-
Constructor Summary
Constructors Constructor Description DefaultProcessTerminator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
killAndWait(int aTimeout)
Kill all known forks and processes.void
registerFork(Fork aFork)
Registers a fork with the terminator.void
registerProcess(Process aProcess)
Registers aProcess
with the terminator.void
unregisterFork(Fork aFork)
Unregisters a fork from the terminator.void
unregisterProcess(Process aProcess)
Unregisters aProcess
from the terminator.
-
-
-
Method Detail
-
registerFork
public void registerFork(Fork aFork)
Description copied from interface:ProcessTerminator
Registers a fork with the terminator.- Specified by:
registerFork
in interfaceProcessTerminator
- Parameters:
aFork
- the fork to register
-
unregisterFork
public void unregisterFork(Fork aFork)
Description copied from interface:ProcessTerminator
Unregisters a fork from the terminator.- Specified by:
unregisterFork
in interfaceProcessTerminator
- Parameters:
aFork
- the fork to unregister
-
registerProcess
public void registerProcess(Process aProcess)
Description copied from interface:ProcessTerminator
Registers aProcess
with the terminator.- Specified by:
registerProcess
in interfaceProcessTerminator
- Parameters:
aProcess
- the process to register
-
unregisterProcess
public void unregisterProcess(Process aProcess)
Description copied from interface:ProcessTerminator
Unregisters aProcess
from the terminator.- Specified by:
unregisterProcess
in interfaceProcessTerminator
- Parameters:
aProcess
- the process to unregister
-
killAndWait
public boolean killAndWait(int aTimeout)
Description copied from interface:ProcessTerminator
Kill all known forks and processes.- Specified by:
killAndWait
in interfaceProcessTerminator
- Returns:
-
-