java.lang.Object
com.ibm.java.lang.management.internal.RuntimeMXBeanImpl
com.ibm.lang.management.internal.ExtendedRuntimeMXBeanImpl
- All Implemented Interfaces:
RuntimeMXBean,PlatformManagedObject,RuntimeMXBean
public final class ExtendedRuntimeMXBeanImpl
extends com.ibm.java.lang.management.internal.RuntimeMXBeanImpl
implements RuntimeMXBean
Runtime type for
RuntimeMXBean.- Since:
- 1.5
-
Nested Class Summary
Nested classes/interfaces declared in interface com.ibm.lang.management.RuntimeMXBean
RuntimeMXBean.VMIdleStates -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns 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:static RuntimeMXBeanSingleton accessor method.doubleReturns a system load average calculated over the minute preceding the call averaged over the number of CPU available to Java virtual machine process.getVmId()This is provided for the benefit of applications which use attach API to load JVMTI agents into their own JVMs.Returns current JVM Idle state.booleanQuery the state of the Attach API.booleanQuery the state of the Attach API.booleanisVMIdle()Methods declared in class com.ibm.java.lang.management.internal.RuntimeMXBeanImpl
checkMonitorPermission, getBootClassPath, getClassPath, getInputArguments, getLibraryPath, getManagementSpecVersion, getName, getObjectName, getSpecName, getSpecVendor, getSpecVersion, getStartTime, getSystemProperties, getUptime, getVmName, getVmVendor, getVmVersion, isBootClassPathSupportedMethods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface java.lang.management.PlatformManagedObject
getObjectNameMethods declared in interface java.lang.management.RuntimeMXBean
getBootClassPath, getClassPath, getInputArguments, getLibraryPath, getManagementSpecVersion, getName, getPid, getSpecName, getSpecVendor, getSpecVersion, getStartTime, getSystemProperties, getUptime, getVmName, getVmVendor, getVmVersion, isBootClassPathSupported
-
Method Details
-
getInstance
Singleton accessor method.- Returns:
- the
RuntimeMXBeanImplsingleton.
-
getCPULoad
public double getCPULoad()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: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.
- Specified by:
getCPULoadin interfaceRuntimeMXBean- Returns:
- normally, the system load average as a double. If the system load average is not obtainable (e.g. because the calculation may involve an unacceptable performance impact) then a negative value is returned.
- See Also:
-
getVMGeneratedCPULoad
public double getVMGeneratedCPULoad()Returns a system load average calculated over the minute preceding the call averaged over the number of CPU available to Java virtual machine process.- Specified by:
getVMGeneratedCPULoadin interfaceRuntimeMXBean- Returns:
- A double indicating the average system load per processor. If the system load average is not available, it returns a negative value to indicate this.
-
getVMIdleState
Returns current JVM Idle state.- Specified by:
getVMIdleStatein interfaceRuntimeMXBean- Returns:
- JVM idle state value - i.e active / idle
-
isVMIdle
public boolean isVMIdle()- Specified by:
isVMIdlein interfaceRuntimeMXBean- Returns:
- true if JVM state is idle. Otherwise returns false
-
isAttachApiInitialized
public boolean isAttachApiInitialized()Description copied from interface:RuntimeMXBeanQuery the state of the Attach API. Return false if the Attach API is: - still initializing - disabled - terminated by VM shutdown- Specified by:
isAttachApiInitializedin interfaceRuntimeMXBean- Returns:
- true if Attach API is initialized
-
isAttachApiTerminated
public boolean isAttachApiTerminated()Description copied from interface:RuntimeMXBeanQuery the state of the Attach API. Return true if the Attach API is: - disabled - terminated by VM shutdown and false if it is - still initializing - initialized and running- Specified by:
isAttachApiTerminatedin interfaceRuntimeMXBean- Returns:
- true if Attach API is terminated
-
getVmId
Description copied from interface:RuntimeMXBeanThis is provided for the benefit of applications which use attach API to load JVMTI agents into their own JVMs.- Specified by:
getVmIdin interfaceRuntimeMXBean- Returns:
- Attach API Virtual Machine ID of this VM
-