public final class SystemInfo
extends java.lang.Object
Constructor and Description |
---|
SystemInfo() |
Modifier and Type | Method and Description |
---|---|
long |
getAvailableMemory()
Returns usable memory.
|
long |
getCPUs()
Returns number of CPUs.
|
long |
getCurrentPID()
Returns PID of current Java process.
|
java.lang.String |
getFileEncoding() |
java.lang.String |
getFileSeparator() |
long |
getFreeMemory()
Returns FREE memory.
|
java.lang.String |
getHomeDir() |
java.lang.String |
getHostAddress()
Returns host IP address.
|
java.lang.String |
getHostName()
Returns host name.
|
java.lang.String |
getJavaHomeDir() |
java.lang.String |
getJavaSpecificationName() |
java.lang.String |
getJavaSpecificationVendor() |
java.lang.String |
getJavaSpecificationVersion()
Retrieves the version of the currently running JVM.
|
java.lang.String |
getJavaVendor()
Returns Java vendor.
|
java.lang.String |
getJavaVendorURL()
Returns Java vendor URL.
|
java.lang.String |
getJavaVersion()
Returns Java version string, as specified in system property.
|
int |
getJavaVersionNumber()
Returns unified Java version as an integer.
|
java.lang.String[] |
getJrePackages()
Returns list of packages, build into runtime jars.
|
java.lang.String |
getJvmInfo()
Returns additional VM information.
|
java.lang.String |
getJvmName()
Returns JVM name.
|
java.lang.String |
getJvmSpecificationName() |
java.lang.String |
getJvmSpecificationVendor() |
java.lang.String |
getJvmSpecificationVersion() |
java.lang.String |
getJvmVendor()
Returns VM vendor.
|
java.lang.String |
getJvmVersion()
Returns JVM version.
|
java.lang.String |
getLineSeparator() |
long |
getMaxMemory()
Returns MAX memory.
|
java.lang.String |
getOsArchitecture() |
java.lang.String |
getOsName() |
java.lang.String |
getOsVersion() |
java.lang.String |
getPathSeparator() |
java.lang.String[] |
getSystemClasspath() |
java.lang.String |
getTempDir() |
long |
getTotalMemory()
Returns TOTAL memory.
|
long |
getUsedMemory()
Returns used memory.
|
java.lang.String |
getUserCountry() |
java.lang.String |
getUserLanguage() |
java.lang.String |
getUserName() |
java.lang.String |
getWorkingDir() |
boolean |
isAix() |
boolean |
isAndroid()
Returns
true if system is android. |
boolean |
isAtLeastJavaVersion(int version)
Checks if the currently running JVM is at least compliant
with provided JDK version.
|
boolean |
isHpUx() |
boolean |
isIrix() |
boolean |
isJavaVersion(int version)
Checks if the currently running JVM is equal to provided version.
|
boolean |
isLinux() |
boolean |
isMac() |
boolean |
isMacOsX() |
boolean |
isOs2() |
boolean |
isSolaris() |
boolean |
isSunOS() |
boolean |
isWindows() |
boolean |
isWindows2000() |
boolean |
isWindows95() |
boolean |
isWindows98() |
boolean |
isWindowsME() |
boolean |
isWindowsNT() |
boolean |
isWindowsXP() |
protected java.lang.String |
nosep(java.lang.String in) |
public final java.lang.String getUserName()
public final java.lang.String getHomeDir()
public final java.lang.String getWorkingDir()
public final java.lang.String getTempDir()
public final java.lang.String getUserLanguage()
public final java.lang.String getUserCountry()
public java.lang.String getJavaHomeDir()
public java.lang.String[] getSystemClasspath()
public final long getMaxMemory()
public final long getTotalMemory()
public final long getFreeMemory()
public final long getAvailableMemory()
public final long getUsedMemory()
public final long getCurrentPID()
public final long getCPUs()
public final java.lang.String getOsArchitecture()
public final java.lang.String getOsName()
public final java.lang.String getOsVersion()
public boolean isAndroid()
true
if system is android.public final boolean isAix()
public final boolean isHpUx()
public final boolean isIrix()
public final boolean isLinux()
public final boolean isMac()
public final boolean isMacOsX()
public final boolean isOs2()
public final boolean isSolaris()
public final boolean isSunOS()
public final boolean isWindows()
public final boolean isWindows2000()
public final boolean isWindows95()
public final boolean isWindows98()
public final boolean isWindowsME()
public final boolean isWindowsNT()
public final boolean isWindowsXP()
public final java.lang.String getFileSeparator()
public final java.lang.String getLineSeparator()
public final java.lang.String getPathSeparator()
public final java.lang.String getFileEncoding()
public final java.lang.String getJvmName()
public final java.lang.String getJvmVersion()
public final java.lang.String getJvmVendor()
public final java.lang.String getJvmInfo()
public final java.lang.String getJvmSpecificationName()
public final java.lang.String getJvmSpecificationVersion()
public final java.lang.String getJvmSpecificationVendor()
public java.lang.String getJavaVersion()
public int getJavaVersionNumber()
public java.lang.String getJavaVendor()
public java.lang.String getJavaVendorURL()
public java.lang.String getJavaSpecificationVersion()
public final java.lang.String getJavaSpecificationName()
public final java.lang.String getJavaSpecificationVendor()
public java.lang.String[] getJrePackages()
public boolean isAtLeastJavaVersion(int version)
public boolean isJavaVersion(int version)
public final java.lang.String getHostName()
public final java.lang.String getHostAddress()
protected java.lang.String nosep(java.lang.String in)
Copyright © 2003-present Jodd Team