java.lang.Object
com.ibm.virtualization.management.internal.HypervisorMXBeanImpl
- All Implemented Interfaces:
HypervisorMXBean,PlatformManagedObject
Runtime type for
HypervisorMXBean.- Since:
- 1.7.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic HypervisorMXBeanImplSingleton accessor method.Returns the object name of the MXBean.Returns the vendor of the Hypervisor if running in a virtualized environment.booleanIndicates if the Operating System is running on a Hypervisor or not.
-
Method Details
-
getInstance
Singleton accessor method.- Returns:
- the
HypervisorMXBeanImplsingleton.
-
getVendor
Returns the vendor of the Hypervisor if running in a virtualized environment.- Specified by:
getVendorin interfaceHypervisorMXBean- Returns:
- string identifying the vendor of the Hypervisor if running under Hypervisor, null otherwise.
-
isEnvironmentVirtual
public boolean isEnvironmentVirtual() throws UnsupportedOperationException, HypervisorInfoRetrievalExceptionIndicates if the Operating System is running on a Hypervisor or not.- Specified by:
isEnvironmentVirtualin interfaceHypervisorMXBean- Returns:
- true if running on a Hypervisor, false otherwise.
- Throws:
UnsupportedOperationException- if the underlying Hypervisor is unsupported.HypervisorInfoRetrievalException- if there is an error during Hypervisor detection.
-
getObjectName
Returns the object name of the MXBean.- Specified by:
getObjectNamein interfacePlatformManagedObject- Returns:
- objectName representing the MXBean.
-