Class SystemUtil


  • public class SystemUtil
    extends Object
    Utility methods tpo get informations from the system
    Since:
    7.7.2
    Author:
    Marco Meschieri - LogicalDOC
    • Constructor Detail

      • SystemUtil

        public SystemUtil()
    • Method Detail

      • main

        public static void main​(String[] args)
      • printEnvironment

        public static String printEnvironment()
      • printStackTrace

        public static String printStackTrace()
      • printSystemEnvironment

        public static String printSystemEnvironment()
      • printJavaEnvironment

        public static String printJavaEnvironment()
      • isWindows

        public static boolean isWindows()
      • isMac

        public static boolean isMac()
      • isUnix

        public static boolean isUnix()
      • isSolaris

        public static boolean isSolaris()
      • getOS

        public static String getOS()
      • restartApplication

        public static void restartApplication​(Runnable runBeforeRestart)
                                       throws IOException
        Restarts the current Java application
        Parameters:
        runBeforeRestart - some custom code to be run before restarting
        Throws:
        IOException - raised if the application cannot be restarted