Class JavaVM

java.lang.Object
ml.karmaconfigs.api.common.JavaVM

public final class JavaVM extends Object
Java virtual machine
  • Constructor Details

    • JavaVM

      public JavaVM()
  • Method Details

    • osName

      public static String osName()
      Get the operative system name
      Returns:
      the os name
    • osVersion

      public static String osVersion()
      Get the operative system version
      Returns:
      the os version
    • osModel

      public static String osModel()
      Get the operative system model
      Returns:
      the os model
    • osArchitecture

      public static String osArchitecture()
      Get the operative system architecture
      Returns:
      the os architecture
    • osMaxMemory

      public static String osMaxMemory()
      Get the operative system max memory
      Returns:
      the os max memory
    • osFreeMemory

      public static String osFreeMemory()
      Get the operative system free memory
      Returns:
      the os free memory
    • jvmArchitecture

      public static String jvmArchitecture()
      Get the java virtual machine architecture
      Returns:
      the jvm architecture
    • jvmMax

      public static String jvmMax()
      Get the java virtual machine max memory
      Returns:
      the jvm max memory
    • jvmAvailable

      public static String jvmAvailable()
      Get the java virtual machine available memory
      Returns:
      the jvm available memory
    • jvmProcessors

      public static int jvmProcessors()
      Get the amount of processors the java virtual machine has
      Returns:
      the jvm processors
    • javaVersion

      public static int javaVersion()
      Get the java virtual machine version
      Returns:
      the java version