public final class SystemUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
architecture()
Return the architecture name
|
static String |
cpuInfo() |
static boolean |
isLinux()
Return
true if running on Linux. |
static boolean |
isOSX()
Return
true if running on OSX. |
static boolean |
isWindows()
Return
true if running on Microsoft Windows. |
static int |
numProcessors()
Return the number of processors available on this machine.
|
static String |
operatingSystem()
Return the Operating System name
|
static String |
osVersion()
Return the Operating System version
|
public static final int numProcessors()
public static final String cpuInfo()
public static final String architecture()
public static final String operatingSystem()
public static final String osVersion()
public static final boolean isWindows()
true
if running on Microsoft Windows.public static final boolean isLinux()
true
if running on Linux.public static final boolean isOSX()
true
if running on OSX.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.