Package com.yahoo.container.protect
Class ProcessTerminator
java.lang.Object
com.yahoo.container.protect.ProcessTerminator
An injectable terminator of the Java vm.
Components that encounters conditions where the vm should be terminated should
request an instance of this injected. That makes termination testable
as tests can create subclasses of this which register the termination request
rather than terminating.
- Author:
- bratseth
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ProcessTerminator
public ProcessTerminator()
-
-
Method Details
-
logAndDie
Logs and dies without taking a thread dump -
logAndDie
Logs and dies- Parameters:
dumpThreads
- if true the stack trace of all threads is dumped to the log with level info before shutting down
-