java.lang.management
public interface OperatingSystemMXBean
Since: 1.5
Method Summary | |
---|---|
String | getArch()
Returns the name of the underlying system architecture. |
int | getAvailableProcessors()
Returns the number of processors currently available to the
virtual machine. |
String | getName()
Returns the name of the underlying operating system. |
double | getSystemLoadAverage()
Returns the system load average for the last minute, or -1
if this is unavailable. |
String | getVersion()
Returns the version of the underlying operating system. |
os.arch
property
via {@link System#getProperty(String)}.
Returns: the name of the underlying system architecture on which the VM is running.
Throws: SecurityException if a security manager exists which prevents access to the name property.
See Also: getProperty checkPropertyAccess
Returns: the number of processors available to the VM.
os.name
property
via {@link System#getProperty(String)}.
Returns: the name of the operating system on which the VM is running.
Throws: SecurityException if a security manager exists which prevents access to the name property.
See Also: getProperty checkPropertyAccess
Returns: the system load average for the last minute, or -1 if this is unavailable.
Since: 1.6
os.version
property
via {@link System#getProperty(String)}.
Returns: the version of the operating system on which the VM is running.
Throws: SecurityException if a security manager exists which prevents access to the name property.
See Also: getProperty checkPropertyAccess