Package net.snowflake.client.core
Class IncidentUtil
- java.lang.Object
-
- net.snowflake.client.core.IncidentUtil
-
public class IncidentUtil extends Object
- Author:
- jrosen + mkeller
-
-
Field Summary
Fields Modifier and Type Field Description static String
INC_DUMP_FILE_EXT
static String
INC_DUMP_FILE_NAME
static String
INCIDENT_INFO
static String
TIMESTAMP
-
Constructor Summary
Constructors Constructor Description IncidentUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 prefixstatic String
oneLiner(Throwable thrown)
Produce a one line description of the throwable, suitable for error message and log printing.
-
-
-
Field Detail
-
TIMESTAMP
public static final String TIMESTAMP
- See Also:
- Constant Field Values
-
INCIDENT_INFO
public static final String INCIDENT_INFO
- See Also:
- Constant Field Values
-
INC_DUMP_FILE_NAME
public static final String INC_DUMP_FILE_NAME
- See Also:
- Constant Field Values
-
INC_DUMP_FILE_EXT
public static final String INC_DUMP_FILE_EXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
oneLiner
public static String oneLiner(Throwable thrown)
Produce a one line description of the throwable, suitable for error message and log printing.- Parameters:
thrown
- thrown object- Returns:
- description of the thrown object
-
oneLiner
public 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- Parameters:
prefix
- String to prefix oneliner summarythrown
- thrown object- Returns:
- description of the thrown object
-
dumpVmMetrics
public static void dumpVmMetrics(String incidentId)
Dumps JVM metrics for this process.- Parameters:
incidentId
- incident id
-
-