Interface Hypervisor
-
- All Superinterfaces:
ModelEntity,Serializable
- All Known Implementing Classes:
ExtHypervisor
public interface Hypervisor extends ModelEntity
Represents a Hypervisor details Entity used within the OSHypervisor extensions API- Author:
- Jeremy Unruh
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceHypervisor.CPUInfostatic interfaceHypervisor.CPUTopologystatic interfaceHypervisor.ServiceThe Hypervisor Services Detail
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Hypervisor.CPUInfogetCPUInfo()Gets the cpu info.intgetCurrentWorkload()Gets the current workload.intgetFreeDisk()Gets free disk space in GBintgetFreeRam()Gets the free RAM in MBStringgetHostIP()Gets the host IP addressStringgetHypervisorHostname()Gets the hostname of the hypervisor node.StringgetId()intgetLeastDiskAvailable()Gets the least disk available.intgetLocalDisk()Gets the local disk.intgetLocalDiskUsed()Gets the local disk used.intgetLocalMemory()Gets the local memory.intgetLocalMemoryUsed()Gets the local memory used.intgetRunningVM()Gets the running vm.Hypervisor.ServicegetService()Gets the service.StringgetState()Gets the host stateStringgetStatus()
Description:Gets the host statusStringgetType()Gets the type of the hypervisor.intgetVersion()Gets the version of the hypervisorintgetVirtualCPU()Gets the virtual cpu.intgetVirtualUsedCPU()Gets the virtual used cpu.
-
-
-
Method Detail
-
getId
String getId()
- Returns:
- the unique identifier representing this hypervisor
-
getCurrentWorkload
int getCurrentWorkload()
Gets the current workload.- Returns:
- the current workload
-
getLeastDiskAvailable
int getLeastDiskAvailable()
Gets the least disk available.- Returns:
- the least disk available
-
getFreeDisk
int getFreeDisk()
Gets free disk space in GB- Returns:
- the free disk in GB
-
getFreeRam
int getFreeRam()
Gets the free RAM in MB- Returns:
- the free RAM in MB
-
getHypervisorHostname
String getHypervisorHostname()
Gets the hostname of the hypervisor node.- Returns:
- the DNS hostname of the hypervisor
-
getHostIP
String getHostIP()
Gets the host IP address- Returns:
- the host IP address
-
getType
String getType()
Gets the type of the hypervisor. For example "QEMU"- Returns:
- the hypervisor implementation type
-
getVersion
int getVersion()
Gets the version of the hypervisor- Returns:
- the version
-
getRunningVM
int getRunningVM()
Gets the running vm.- Returns:
- the running vm
-
getVirtualCPU
int getVirtualCPU()
Gets the virtual cpu.- Returns:
- the virtual cpu
-
getVirtualUsedCPU
int getVirtualUsedCPU()
Gets the virtual used cpu.- Returns:
- the virtual used cpu
-
getLocalDisk
int getLocalDisk()
Gets the local disk.- Returns:
- the local disk
-
getLocalDiskUsed
int getLocalDiskUsed()
Gets the local disk used.- Returns:
- the local disk used
-
getLocalMemory
int getLocalMemory()
Gets the local memory.- Returns:
- the local memory
-
getLocalMemoryUsed
int getLocalMemoryUsed()
Gets the local memory used.- Returns:
- the local memory used
-
getService
Hypervisor.Service getService()
Gets the service.- Returns:
- the service
-
getCPUInfo
Hypervisor.CPUInfo getCPUInfo()
Gets the cpu info.- Returns:
- CPUInfo
-
getStatus
String getStatus()
Description:Gets the host statusAuthor:Wang Ting/王婷
- Returns:
- the host status
-
getState
String getState()
Gets the host stateAuthor:Wang Ting/王婷
- Returns:
- the host state
-
-