@Immutable public final class SystemHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
getFreeMemory()
Returns the amount of free memory in the Java Virtual Machine.
|
static EJavaVersion |
getJavaVersion() |
static EJVMVendor |
getJVMVendor() |
static long |
getMaxMemory()
Returns the maximum amount of memory that the Java virtual machine will
attempt to use.
|
static int |
getNumberOfProcessors() |
static EOperatingSystem |
getOperatingSystem() |
static String |
getOperatingSystemName() |
static EProcessorArchitecture |
getProcessorArchitecture() |
static Charset |
getSystemCharset() |
static String |
getSystemCharsetName() |
static Locale |
getSystemLocale() |
static long |
getTotalMemory()
Returns the total amount of memory in the Java virtual machine.
|
@Nonnegative public static int getNumberOfProcessors()
@Nonnull public static EProcessorArchitecture getProcessorArchitecture()
null.@Nonnull public static EOperatingSystem getOperatingSystem()
@Nonnull public static String getOperatingSystemName()
@Nonnull public static EJavaVersion getJavaVersion()
null.@Nonnull public static EJVMVendor getJVMVendor()
@Nonnull public static String getSystemCharsetName()
@Nonnegative public static long getFreeMemory()
@Nonnegative public static long getMaxMemory()
Long.MAX_VALUE will be returned.@Nonnegative public static long getTotalMemory()
Note that the amount of memory required to hold an object of any given type may be implementation-dependent.
Copyright © 2014–2017 Philip Helger. All rights reserved.