Class ExtHypervisor
- java.lang.Object
-
- org.openstack4j.openstack.compute.domain.ext.ExtHypervisor
-
- All Implemented Interfaces:
Serializable,Hypervisor,ModelEntity
public class ExtHypervisor extends Object implements Hypervisor
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExtHypervisor.Hypervisors-
Nested classes/interfaces inherited from interface org.openstack4j.model.compute.ext.Hypervisor
Hypervisor.CPUInfo, Hypervisor.CPUTopology, Hypervisor.Service
-
-
Constructor Summary
Constructors Constructor Description ExtHypervisor()
-
Method Summary
All Methods Instance Methods Concrete 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.StringtoString()
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceHypervisor- Returns:
- the unique identifier representing this hypervisor
-
getCurrentWorkload
public int getCurrentWorkload()
Description copied from interface:HypervisorGets the current workload.- Specified by:
getCurrentWorkloadin interfaceHypervisor- Returns:
- the current workload
-
getLeastDiskAvailable
public int getLeastDiskAvailable()
Description copied from interface:HypervisorGets the least disk available.- Specified by:
getLeastDiskAvailablein interfaceHypervisor- Returns:
- the least disk available
-
getFreeDisk
public int getFreeDisk()
Description copied from interface:HypervisorGets free disk space in GB- Specified by:
getFreeDiskin interfaceHypervisor- Returns:
- the free disk in GB
-
getFreeRam
public int getFreeRam()
Description copied from interface:HypervisorGets the free RAM in MB- Specified by:
getFreeRamin interfaceHypervisor- Returns:
- the free RAM in MB
-
getHypervisorHostname
public String getHypervisorHostname()
Description copied from interface:HypervisorGets the hostname of the hypervisor node.- Specified by:
getHypervisorHostnamein interfaceHypervisor- Returns:
- the DNS hostname of the hypervisor
-
getType
public String getType()
Description copied from interface:HypervisorGets the type of the hypervisor. For example "QEMU"- Specified by:
getTypein interfaceHypervisor- Returns:
- the hypervisor implementation type
-
getVersion
public int getVersion()
Description copied from interface:HypervisorGets the version of the hypervisor- Specified by:
getVersionin interfaceHypervisor- Returns:
- the version
-
getRunningVM
public int getRunningVM()
Description copied from interface:HypervisorGets the running vm.- Specified by:
getRunningVMin interfaceHypervisor- Returns:
- the running vm
-
getVirtualCPU
public int getVirtualCPU()
Description copied from interface:HypervisorGets the virtual cpu.- Specified by:
getVirtualCPUin interfaceHypervisor- Returns:
- the virtual cpu
-
getVirtualUsedCPU
public int getVirtualUsedCPU()
Description copied from interface:HypervisorGets the virtual used cpu.- Specified by:
getVirtualUsedCPUin interfaceHypervisor- Returns:
- the virtual used cpu
-
getLocalDisk
public int getLocalDisk()
Description copied from interface:HypervisorGets the local disk.- Specified by:
getLocalDiskin interfaceHypervisor- Returns:
- the local disk
-
getLocalDiskUsed
public int getLocalDiskUsed()
Description copied from interface:HypervisorGets the local disk used.- Specified by:
getLocalDiskUsedin interfaceHypervisor- Returns:
- the local disk used
-
getLocalMemory
public int getLocalMemory()
Description copied from interface:HypervisorGets the local memory.- Specified by:
getLocalMemoryin interfaceHypervisor- Returns:
- the local memory
-
getLocalMemoryUsed
public int getLocalMemoryUsed()
Description copied from interface:HypervisorGets the local memory used.- Specified by:
getLocalMemoryUsedin interfaceHypervisor- Returns:
- the local memory used
-
getService
public Hypervisor.Service getService()
Description copied from interface:HypervisorGets the service.- Specified by:
getServicein interfaceHypervisor- Returns:
- the service
-
getHostIP
public String getHostIP()
Description copied from interface:HypervisorGets the host IP address- Specified by:
getHostIPin interfaceHypervisor- Returns:
- the host IP address
-
getCPUInfo
public Hypervisor.CPUInfo getCPUInfo()
Description copied from interface:HypervisorGets the cpu info.- Specified by:
getCPUInfoin interfaceHypervisor- Returns:
- CPUInfo
-
getStatus
public String getStatus()
Description copied from interface:Hypervisor
Description:Gets the host statusAuthor:Wang Ting/王婷
- Specified by:
getStatusin interfaceHypervisor- Returns:
- the host status
-
getState
public String getState()
Description copied from interface:HypervisorGets the host stateAuthor:Wang Ting/王婷
- Specified by:
getStatein interfaceHypervisor- Returns:
- the host state
-
-