Package com.yahoo.protect
Class Process
java.lang.Object
com.yahoo.protect.Process
A class for interacting with the global state of the running VM.
- Author:
- Steinar Knutsen
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
static void
Die with a message, without dumping thread statestatic void
Die with a message, optionally dumping thread statestatic void
Die with a message containing an exception, without dumping thread statestatic void
Log message as severe error, then forcibly exit runtime, without running exit handlers or otherwise waiting for cleanup.
-
Constructor Details
-
Process
public Process()
-
-
Method Details
-
logAndDie
Die with a message, without dumping thread state -
logAndDie
Die with a message, optionally dumping thread state -
logAndDie
Die with a message containing an exception, without dumping thread state -
logAndDie
Log message as severe error, then forcibly exit runtime, without running exit handlers or otherwise waiting for cleanup.- Parameters:
message
- message to log before exitthrown
- the throwable that caused the application to exit.dumpThreads
- if true the stack trace of all threads is dumped to the log with level info before shutting down
-
dumpHeap
-
dumpThreads
public static void dumpThreads()
-