Class ManagementUtils


  • public abstract class ManagementUtils
    extends java.lang.Object
    Management Utility class
    Since:
    1.0.0
    Version:
    1.0.0
    Author:
    Mercy
    See Also:
    ManagementUtils
    • Constructor Summary

      Constructors 
      Constructor Description
      ManagementUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int 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
    • Constructor Detail

      • ManagementUtils

        public ManagementUtils()
    • Method Detail

      • getCurrentProcessId

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