Class HypervisorMXBeanImpl
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 HypervisorMXBeanImpl
Singleton accessor method.Returns the object name of the MXBean.Returns the vendor of the Hypervisor if running in a virtualized environment.boolean
Indicates if the Operating System is running on a Hypervisor or not.
-
Method Details
-
getInstance
Singleton accessor method.- Returns:
- the
HypervisorMXBeanImpl
singleton.
-
getVendor
Returns the vendor of the Hypervisor if running in a virtualized environment.- Specified by:
getVendor
in 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:
isEnvironmentVirtual
in 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:
getObjectName
in interfacePlatformManagedObject
- Returns:
- objectName representing the MXBean.
-