Class ManagementUtils

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long getCurrentProcessId()
      Get the process ID of current JVM
      • Methods inherited from class java.lang.Object

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

      • getCurrentProcessId

        public static long getCurrentProcessId()
        Get the process ID of current JVM
        Returns:
        If can't get the process ID , return -1