Package alluxio.util
Class OSUtils
- java.lang.Object
-
- alluxio.util.OSUtils
-
@ThreadSafe public final class OSUtils extends java.lang.Object
OS related utility functions.
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
IBM_JAVA
Indicates the current java vendor is IBM java or not.static java.lang.String
JAVA_VENDOR_NAME
The java vendor name used in this platform.static java.lang.String
OS_NAME
The OS name.static java.lang.String
PROCESSOR_BIT
The processor bit.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
is64Bit()
static boolean
isAIX()
static boolean
isLinux()
static boolean
isMacOS()
static boolean
isWindows()
-
-
-
Field Detail
-
OS_NAME
public static final java.lang.String OS_NAME
The OS name.
-
PROCESSOR_BIT
public static final java.lang.String PROCESSOR_BIT
The processor bit.
-
JAVA_VENDOR_NAME
public static final java.lang.String JAVA_VENDOR_NAME
The java vendor name used in this platform.
-
IBM_JAVA
public static final boolean IBM_JAVA
Indicates the current java vendor is IBM java or not.
-
-
Method Detail
-
is64Bit
public static boolean is64Bit()
- Returns:
- true if current processor is 64 bit
-
isWindows
public static boolean isWindows()
- Returns:
- true if current OS is Windows
-
isMacOS
public static boolean isMacOS()
- Returns:
- true if current OS is MacOS
-
isLinux
public static boolean isLinux()
- Returns:
- true if current OS is Linux
-
isAIX
public static boolean isAIX()
- Returns:
- true if current OS is AIX
-
-