Class CLIReportingUtils


  • public final class CLIReportingUtils
    extends java.lang.Object
    Utility class used to report errors, statistics, application version info, etc.
    Author:
    jdcasey
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BUILD_VERSION_PROPERTY  
      static long MB  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String formatDuration​(long duration)  
      static java.lang.String formatTimestamp​(long timestamp)  
      static void showError​(org.slf4j.Logger logger, java.lang.String message, java.lang.Throwable e, boolean showStackTrace)  
      static java.lang.String showVersion()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CLIReportingUtils

        public CLIReportingUtils()
    • Method Detail

      • showVersion

        public static java.lang.String showVersion()
      • showError

        public static void showError​(org.slf4j.Logger logger,
                                     java.lang.String message,
                                     java.lang.Throwable e,
                                     boolean showStackTrace)
      • formatTimestamp

        public static java.lang.String formatTimestamp​(long timestamp)
      • formatDuration

        public static java.lang.String formatDuration​(long duration)