public final class FailureUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DIRECT_MEMORY_OOM_MESSAGE
This message is used to distinguish between direct memory and heap memory
OutOfMemoryError s. |
static int |
EXIT_CODE_HEAP_OOM |
static int |
EXIT_CODE_JAVA_ERROR |
Modifier and Type | Method and Description |
---|---|
static boolean |
hadUnrecoverableFailure() |
static boolean |
isDirectMemoryOOM(Throwable e) |
static boolean |
isHeapOOM(Throwable e) |
static void |
unrecoverableFailure(Throwable e,
String message,
int exitCode) |
public static final int EXIT_CODE_HEAP_OOM
public static final int EXIT_CODE_JAVA_ERROR
public static final String DIRECT_MEMORY_OOM_MESSAGE
OutOfMemoryError
s.public static boolean isDirectMemoryOOM(Throwable e)
public static boolean isHeapOOM(Throwable e)
public static void unrecoverableFailure(Throwable e, String message, int exitCode)
public static boolean hadUnrecoverableFailure()
Copyright © 1970 The Apache Software Foundation. All rights reserved.