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 booleankillAndWait(int aTimeout)Kill all known forks and processes.voidregisterFork(Fork aFork)Registers a fork with the terminator.voidregisterProcess(Process aProcess)Registers aProcesswith the terminator.voidunregisterFork(Fork aFork)Unregisters a fork from the terminator.voidunregisterProcess(Process aProcess)Unregisters aProcessfrom the terminator.
-
-
-
Method Detail
-
registerFork
public void registerFork(Fork aFork)
Description copied from interface:ProcessTerminatorRegisters a fork with the terminator.- Specified by:
registerForkin interfaceProcessTerminator- Parameters:
aFork- the fork to register
-
unregisterFork
public void unregisterFork(Fork aFork)
Description copied from interface:ProcessTerminatorUnregisters a fork from the terminator.- Specified by:
unregisterForkin interfaceProcessTerminator- Parameters:
aFork- the fork to unregister
-
registerProcess
public void registerProcess(Process aProcess)
Description copied from interface:ProcessTerminatorRegisters aProcesswith the terminator.- Specified by:
registerProcessin interfaceProcessTerminator- Parameters:
aProcess- the process to register
-
unregisterProcess
public void unregisterProcess(Process aProcess)
Description copied from interface:ProcessTerminatorUnregisters aProcessfrom the terminator.- Specified by:
unregisterProcessin interfaceProcessTerminator- Parameters:
aProcess- the process to unregister
-
killAndWait
public boolean killAndWait(int aTimeout)
Description copied from interface:ProcessTerminatorKill all known forks and processes.- Specified by:
killAndWaitin interfaceProcessTerminator- Returns:
-
-