Package net.risingworld.api.utils
Klasse Utils.SystemUtils
java.lang.Object
net.risingworld.api.utils.Utils.SystemUtils
- Umschließende Klasse:
Utils
Various system functions providing access to information about the underlying
hardware and operating system.
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic String
Gets the architecture of the JVM (32 or 64 bit).static String
Gets the Java version.static int
Gets the maximum amount of heap memory the JVM can use.static String
Gets the name of the operating system.static int
Gets the number of processors or cores available to the JVM.
-
Konstruktordetails
-
SystemUtils
public SystemUtils()
-
-
Methodendetails
-
getOperatingSystem
Gets the name of the operating system.- Gibt zurück:
- the name of the operating system.
-
getProcessorCores
public static int getProcessorCores()Gets the number of processors or cores available to the JVM.- Gibt zurück:
- the number of processors/cores.
-
getMemory
public static int getMemory()Gets the maximum amount of heap memory the JVM can use.- Gibt zurück:
- the heap memory, measured in megabytes.
-
getArchitecture
Gets the architecture of the JVM (32 or 64 bit). Remember: If the server uses a 64 bit operating system, it is required to use the 64 bit version of Java.- Gibt zurück:
- the architecture of the JVM.
-
getJavaVersion
Gets the Java version.- Gibt zurück:
- the Java version.
-