Package com.vaadin.open
Class OSUtils
- java.lang.Object
-
- com.vaadin.open.OSUtils
-
public class OSUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description OSUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Long
getLongProperty(String name)
static Long
getLongProperty(String name, int radix)
static String
getOsName()
static long
getTotalPhysicalMemory()
Safe call to obtain size of total physical memory.static boolean
isLinux()
static boolean
isMac()
static boolean
isWindows()
static boolean
isWsl()
static long
longValueOf(String value, int radix)
-
-
-
Method Detail
-
getTotalPhysicalMemory
public static long getTotalPhysicalMemory()
Safe call to obtain size of total physical memory.It is platform dependent and returns size of machine physical memory in bytes
- Returns:
- total size of machine physical memory in bytes or -1 if the attribute is not available.
-
longValueOf
public static long longValueOf(String value, int radix)
-
getOsName
public static String getOsName()
-
isLinux
public static boolean isLinux()
-
isMac
public static boolean isMac()
-
isWindows
public static boolean isWindows()
-
isWsl
public static boolean isWsl()
-
-