Package ml.karmaconfigs.api.common
Class JavaVM
java.lang.Object
ml.karmaconfigs.api.common.JavaVM
Java virtual machine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intGet the java virtual machine versionstatic StringGet the java virtual machine architecturestatic StringGet the java virtual machine available memorystatic StringjvmMax()Get the java virtual machine max memorystatic intGet the amount of processors the java virtual machine hasstatic StringGet the operative system architecturestatic StringGet the operative system free memorystatic StringGet the operative system max memorystatic StringosModel()Get the operative system modelstatic StringosName()Get the operative system namestatic StringGet the operative system version
-
Constructor Details
-
JavaVM
public JavaVM()
-
-
Method Details
-
osName
Get the operative system name- Returns:
- the os name
-
osVersion
Get the operative system version- Returns:
- the os version
-
osModel
Get the operative system model- Returns:
- the os model
-
osArchitecture
Get the operative system architecture- Returns:
- the os architecture
-
osMaxMemory
Get the operative system max memory- Returns:
- the os max memory
-
osFreeMemory
Get the operative system free memory- Returns:
- the os free memory
-
jvmArchitecture
Get the java virtual machine architecture- Returns:
- the jvm architecture
-
jvmMax
Get the java virtual machine max memory- Returns:
- the jvm max memory
-
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
-