public interface GuestOSMXBean extends PlatformManagedObject
GuestOSMXBean
...
try {
mxbeanName = new ObjectName("com.ibm.virtualization.management:type=GuestOS");
} catch (MalformedObjectNameException e) {
// Exception Handling
}
try {
MBeanServer mbeanServer = ManagementFactory.getPlatformMBeanServer();
if (true != mbeanServer.isRegistered(mxbeanName)) {
// GuestOSMXBean not registered
}
GuestOSMXBean guestBean = JMX.newMXBeanProxy(mbeanServer, mxbeanName, GuestOSMXBean.class);
} catch (Exception e) {
// Exception Handling
}
Modifier and Type | Method and Description |
---|---|
GuestOSMemoryUsage |
retrieveMemoryUsage()
Function instantiates a
GuestOSMemoryUsage object and populates it with the
current snapshot of Memory Usage statistics of the Guest as seen by the Hypervisor. |
GuestOSMemoryUsage |
retrieveMemoryUsage(GuestOSMemoryUsage gmUsage)
Snapshot of the Guest Memory usage statistics as seen by the Hypervisor, returned as
a
GuestOSMemoryUsage object. |
GuestOSProcessorUsage |
retrieveProcessorUsage()
Function instantiates a
GuestOSProcessorUsage object and populates it with the
current snapshot of Processor Usage statistics of the Guest as seen by the Hypervisor. |
GuestOSProcessorUsage |
retrieveProcessorUsage(GuestOSProcessorUsage gpUsage)
Snapshot of the Guest Processor usage statistics as seen by the Hypervisor, returned as a
GuestOSProcessorUsage object. |
getObjectName
GuestOSProcessorUsage retrieveProcessorUsage(GuestOSProcessorUsage gpUsage) throws NullPointerException, GuestOSInfoRetrievalException
GuestOSProcessorUsage
object. The statistics are an
aggregate across all physical CPUs assigned to the Guest by the Hypervisor.gpUsage
- User provided GuestOSProcessorUsage
object.GuestOSProcessorUsage
object.NullPointerException
- if a null reference is passed.GuestOSInfoRetrievalException
- if it failed to obtain usage statistics.
In case of an exception, the handler code can use toString() on the exception code to obtain a description of the exception.
GuestOSProcessorUsage retrieveProcessorUsage() throws GuestOSInfoRetrievalException
GuestOSProcessorUsage
object and populates it with the
current snapshot of Processor Usage statistics of the Guest as seen by the Hypervisor.
The statistics are an aggregate across all physical CPUs assigned to the Guest by the Hypervisor.GuestOSProcessorUsage
object.GuestOSInfoRetrievalException
- if it failed to obtain usage statistics.
In case of an exception, the handler code can use toString() on the exception code to obtain a description of the exception.
GuestOSMemoryUsage retrieveMemoryUsage(GuestOSMemoryUsage gmUsage) throws NullPointerException, GuestOSInfoRetrievalException
GuestOSMemoryUsage
object.gmUsage
- User provided GuestOSMemoryUsage
object.GuestOSMemoryUsage
object.NullPointerException
- if a null reference is passed.GuestOSInfoRetrievalException
- if it failed to obtain usage statistics.
In case of an exception, the handler code can use toString() on the exception code to obtain a description of the exception.
GuestOSMemoryUsage retrieveMemoryUsage() throws GuestOSInfoRetrievalException
GuestOSMemoryUsage
object and populates it with the
current snapshot of Memory Usage statistics of the Guest as seen by the Hypervisor.GuestOSMemoryUsage
object.GuestOSInfoRetrievalException
- if it failed to obtain usage statistics.
In case of an exception, the handler code can use toString() on the exception code to obtain a description of the exception.
Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2001, 2024 IBM Corp. and others.