public interface OperatingSystemMXBean
ManagementFactory.getOperatingSystemMXBean().| Modifier and Type | Method and Description |
|---|---|
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.
|
String getArch()
os.arch property
via System.getProperty(String).SecurityException - if a security manager exists which
prevents access to the name property.System.getProperty(String),
SecurityManager.checkPropertyAccess(String)int getAvailableProcessors()
Runtime.availableProcessors().String getName()
os.name property
via System.getProperty(String).SecurityException - if a security manager exists which
prevents access to the name property.System.getProperty(String),
SecurityManager.checkPropertyAccess(String)double getSystemLoadAverage()
String getVersion()
os.version property
via System.getProperty(String).SecurityException - if a security manager exists which
prevents access to the name property.System.getProperty(String),
SecurityManager.checkPropertyAccess(String)