public class IncidentUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
INC_DUMP_FILE_EXT |
static String |
INC_DUMP_FILE_NAME |
static String |
INCIDENT_INFO |
static String |
TIMESTAMP |
| Constructor and Description |
|---|
IncidentUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
dumpVmMetrics(String incidentId)
Dumps JVM metrics for this process.
|
static String |
oneLiner(String prefix,
Throwable thrown)
Produce a one line description of the throwable, suitable for error message and log printing
with a prefix
|
static String |
oneLiner(Throwable thrown)
Produce a one line description of the throwable, suitable for error message and log printing.
|
public static final String TIMESTAMP
public static final String INCIDENT_INFO
public static final String INC_DUMP_FILE_NAME
public static final String INC_DUMP_FILE_EXT
public static String oneLiner(Throwable thrown)
thrown - thrown objectpublic static String oneLiner(String prefix, Throwable thrown)
prefix - String to prefix oneliner summarythrown - thrown objectpublic static void dumpVmMetrics(String incidentId)
incidentId - incident idCopyright © 2023. All rights reserved.