Class IncidentUtil


  • public class IncidentUtil
    extends Object
    Author:
    jrosen + mkeller
    • Constructor Detail

      • IncidentUtil

        public IncidentUtil()
    • 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 summary
        thrown - 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