jsat.utils
Class SystemInfo
- java.lang.Object
-
- jsat.utils.SystemInfo
-
public class SystemInfo extends java.lang.ObjectThis class provides Static system information that may be useful for algorithms that want to adjust their behavior based on the system's hardware information. All information supposes that hardware is consistent, ie: all memory installed is of the same type and all CPUs installed are the same model and stepping.
-
-
Field Summary
Fields Modifier and Type Field and Description static intL2CacheSizeContains the per core L2 Cache size.static intLogicalCoresstatic java.lang.StringOS_String
-
Constructor Summary
Constructors Constructor and Description SystemInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static booleanisLinux()static booleanisMac()static booleanisWindows()
-
-
-
Field Detail
-
LogicalCores
public static final int LogicalCores
-
OS_String
public static final java.lang.String OS_String
-
L2CacheSize
public static final int L2CacheSize
Contains the per core L2 Cache size. The value returned will be '0' if there was an error obtaining the size
-
-
Method Detail
-
isWindows
public static boolean isWindows()
- Returns:
- true if this machine is running some version of Windows
-
isMac
public static boolean isMac()
- Returns:
- true is this machine is running some version of Mac OS X
-
isLinux
public static boolean isLinux()
- Returns:
- true if this machine is running some version of Linux
-
-
DataMelt 3.0 © DataMelt by jWork.ORG