public final class Process extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Process.ShutdownError |
Constructor and Description |
---|
Process() |
Modifier and Type | Method and Description |
---|---|
static void |
dumpThreads() |
static void |
logAndDie(String message)
Die with a message, without dumping thread state
|
static void |
logAndDie(String message,
boolean dumpThreads)
Die with a message, optionally dumping thread state
|
static void |
logAndDie(String message,
Throwable thrown)
Die with a message containing an exception, without dumping thread state
|
static void |
logAndDie(String message,
Throwable thrown,
boolean dumpThreads)
Log message as severe error, then forcibly exit runtime, without running
exit handlers or otherwise waiting for cleanup.
|
private static final Logger log
public static void logAndDie(String message)
public static void logAndDie(String message, boolean dumpThreads)
public static void logAndDie(String message, Throwable thrown)
public static void logAndDie(String message, Throwable thrown, boolean dumpThreads)
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 downpublic static void dumpThreads()
Copyright © 2017. All rights reserved.