Class JvmUtil


  • public class JvmUtil
    extends Object
    Provides access to information about the currently running JVM and some process-control.
    • Constructor Detail

      • JvmUtil

        public JvmUtil()
    • Method Detail

      • getPid

        public static String getPid()
      • getMachineName

        public static String getMachineName()
      • getUptime

        public static long getUptime()
      • addShutdownHook

        public static void addShutdownHook​(Runnable task)
        Null-safe shortcut to Runtime method, catching RuntimeExceptions.