Package net.snowflake.client.core
Class IncidentUtil
- java.lang.Object
-
- net.snowflake.client.core.IncidentUtil
-
public class IncidentUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringINC_DUMP_FILE_EXTstatic StringINC_DUMP_FILE_NAMEstatic StringINCIDENT_INFOstatic StringTIMESTAMP
-
Constructor Summary
Constructors Constructor Description IncidentUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddumpVmMetrics(String incidentId)Dumps JVM metrics for this process.static StringoneLiner(String prefix, Throwable thrown)Produce a one line description of the throwable, suitable for error message and log printing with a prefixstatic StringoneLiner(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
-
-