public final class JVMStabilityInspector
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JVMStabilityInspector.Killer |
static interface |
JVMStabilityInspector.OnKillHook
This class is usually used to avoid JVM exit when running junit tests.
|
Modifier and Type | Field and Description |
---|---|
static JVMStabilityInspector.OnKillHook |
killerHook |
Modifier and Type | Method and Description |
---|---|
static void |
inspectCommitLogThrowable(java.lang.Throwable t) |
static void |
inspectThrowable(java.lang.Throwable t)
Certain Throwables and Exceptions represent "Die" conditions for the server.
|
static void |
inspectThrowable(java.lang.Throwable t,
boolean propagateOutOfMemory) |
static void |
killCurrentJVM(java.lang.Throwable t,
boolean quiet) |
static JVMStabilityInspector.Killer |
replaceKiller(JVMStabilityInspector.Killer newKiller) |
static void |
userFunctionTimeout(java.lang.Throwable t) |
public static JVMStabilityInspector.OnKillHook killerHook
public static void inspectThrowable(java.lang.Throwable t) throws java.lang.OutOfMemoryError
t
- The Throwable to check for server-stop conditionsjava.lang.OutOfMemoryError
public static void inspectThrowable(java.lang.Throwable t, boolean propagateOutOfMemory) throws java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
public static void inspectCommitLogThrowable(java.lang.Throwable t)
public static void killCurrentJVM(java.lang.Throwable t, boolean quiet)
public static void userFunctionTimeout(java.lang.Throwable t)
public static JVMStabilityInspector.Killer replaceKiller(JVMStabilityInspector.Killer newKiller)
Copyright © 2009-2020 The Apache Software Foundation