public interface OperatingSystemMXBean extends PlatformManagedObject
Precisely one instance of this interface will be made available to management clients.
Accessing this MXBean
can be done in one of three ways.
ManagementFactory.newPlatformMXBeanProxy(javax.management.MBeanServerConnection, java.lang.String, java.lang.Class<T>)
method, passing in
"java.lang:type=OperatingSystem" for the value of the second
parameter.Modifier and Type | Method and Description |
---|---|
String |
getArch()
Returns a unique string identifier for the architecture of the underlying
operating system.
|
int |
getAvailableProcessors()
Returns the number of processors that are available for the virtual
machine to run on.
|
String |
getName()
Returns the name of the underlying operating system.
|
double |
getSystemLoadAverage()
Returns a double value which holds the system load average calculated for
the minute preceding the call, where system load average is taken
to mean the following:
|
String |
getVersion()
Returns the version string for the underlying operating system.
|
getObjectName
String getArch()
System.getProperty(java.lang.String)
supplying the value "os.arch" for the key.SecurityException
- if there is a security manager in operation and the caller
does not have permission to check system properties.System.getProperty(java.lang.String)
int getAvailableProcessors()
Runtime.availableProcessors()
.String getName()
System.getProperty(java.lang.String)
supplying the value
"os.name" for the key.SecurityException
- if there is a security manager in operation and the caller
does not have permission to check system properties.System.getProperty(java.lang.String)
String getVersion()
System.getProperty(java.lang.String)
supplying the value
"os.version" for the key.SecurityException
- if there is a security manager in operation and the caller
does not have permission to check system properties.System.getProperty(java.lang.String)
double getSystemLoadAverage()
the time-averaged value of the sum of the number of runnable entities running on the available processors and the number of runnable entities ready and queued to run on the available processors. The averaging technique adopted can vary depending on the underlying operating system.
Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 1993, 2025 IBM Corp. and others.