|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.utils.SystemUtils
public final class SystemUtils
Collection of utility methods used as a convenience for retrieving JVM-level or System-level information.
| Method Summary | |
|---|---|
static TypedProperties |
getEnvironment()
Get a map of the environment variables. |
static TypedProperties |
getNetwork()
Get a map of the environment variables. |
static int |
getPID()
Return the current process ID. |
static TypedProperties |
getRuntimeInformation()
Get information about the number of processors available to the JVM and the JVM memory usage. |
static TypedProperties |
getStorageInformation()
Get storage information about each file system root available on the current host. |
static TypedProperties |
getSystemProperties()
Return a set of properties guaranteed to always be part of those returned by System.getProperties(). |
static boolean |
isMac()
Determine whether the current OS is Mac-based. |
static boolean |
isWindows()
Determine whether the current OS is Windows. |
static boolean |
isX11()
Determine whether the current OS is X11-based. |
static long |
maxFreeHeap()
Compute the maximum memory currently available for the Java heap. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static TypedProperties getSystemProperties()
System.getProperties().
TypedProperties instance.public static TypedProperties getRuntimeInformation()
TypedProperties instance holding the requested information.public static TypedProperties getStorageInformation()
TypedProperties object with root name, free space, total space and usable space
information for each root.
If the Java version is before 1.6, only the root name is retrieved. An example root name would be "C:\" for a Windows system and "/" for a Unix system.
public static TypedProperties getEnvironment()
public static TypedProperties getNetwork()
public static long maxFreeHeap()
public static boolean isWindows()
public static boolean isX11()
public static boolean isMac()
public static int getPID()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||