We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.open.
Package com.vaadin.open
Class OSUtils
java.lang.Object
com.vaadin.open.OSUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Long
getLongProperty
(String name) static Long
getLongProperty
(String name, int radix) static String
static long
Safe call to obtain size of total physical memory.
static boolean
isLinux()
static boolean
isMac()
static boolean
static boolean
isWsl()
static long
longValueOf
(String value, int radix)
-
Constructor Details
-
OSUtils
public OSUtils()
-
-
Method Details
-
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.
-
getLongProperty
-
getLongProperty
-
longValueOf
-
getOsName
-
isLinux
public static boolean isLinux() -
isMac
public static boolean isMac() -
isWindows
public static boolean isWindows() -
isWsl
public static boolean isWsl()
-