Class ExtHypervisor

    • Constructor Detail

      • ExtHypervisor

        public ExtHypervisor()
    • Method Detail

      • getId

        public String getId()
        Specified by:
        getId in interface Hypervisor
        Returns:
        the unique identifier representing this hypervisor
      • getCurrentWorkload

        public int getCurrentWorkload()
        Description copied from interface: Hypervisor
        Gets the current workload.
        Specified by:
        getCurrentWorkload in interface Hypervisor
        Returns:
        the current workload
      • getLeastDiskAvailable

        public int getLeastDiskAvailable()
        Description copied from interface: Hypervisor
        Gets the least disk available.
        Specified by:
        getLeastDiskAvailable in interface Hypervisor
        Returns:
        the least disk available
      • getFreeDisk

        public int getFreeDisk()
        Description copied from interface: Hypervisor
        Gets free disk space in GB
        Specified by:
        getFreeDisk in interface Hypervisor
        Returns:
        the free disk in GB
      • getFreeRam

        public int getFreeRam()
        Description copied from interface: Hypervisor
        Gets the free RAM in MB
        Specified by:
        getFreeRam in interface Hypervisor
        Returns:
        the free RAM in MB
      • getHypervisorHostname

        public String getHypervisorHostname()
        Description copied from interface: Hypervisor
        Gets the hostname of the hypervisor node.
        Specified by:
        getHypervisorHostname in interface Hypervisor
        Returns:
        the DNS hostname of the hypervisor
      • getType

        public String getType()
        Description copied from interface: Hypervisor
        Gets the type of the hypervisor. For example "QEMU"
        Specified by:
        getType in interface Hypervisor
        Returns:
        the hypervisor implementation type
      • getVersion

        public int getVersion()
        Description copied from interface: Hypervisor
        Gets the version of the hypervisor
        Specified by:
        getVersion in interface Hypervisor
        Returns:
        the version
      • getRunningVM

        public int getRunningVM()
        Description copied from interface: Hypervisor
        Gets the running vm.
        Specified by:
        getRunningVM in interface Hypervisor
        Returns:
        the running vm
      • getVirtualCPU

        public int getVirtualCPU()
        Description copied from interface: Hypervisor
        Gets the virtual cpu.
        Specified by:
        getVirtualCPU in interface Hypervisor
        Returns:
        the virtual cpu
      • getVirtualUsedCPU

        public int getVirtualUsedCPU()
        Description copied from interface: Hypervisor
        Gets the virtual used cpu.
        Specified by:
        getVirtualUsedCPU in interface Hypervisor
        Returns:
        the virtual used cpu
      • getLocalDisk

        public int getLocalDisk()
        Description copied from interface: Hypervisor
        Gets the local disk.
        Specified by:
        getLocalDisk in interface Hypervisor
        Returns:
        the local disk
      • getLocalDiskUsed

        public int getLocalDiskUsed()
        Description copied from interface: Hypervisor
        Gets the local disk used.
        Specified by:
        getLocalDiskUsed in interface Hypervisor
        Returns:
        the local disk used
      • getLocalMemory

        public int getLocalMemory()
        Description copied from interface: Hypervisor
        Gets the local memory.
        Specified by:
        getLocalMemory in interface Hypervisor
        Returns:
        the local memory
      • getLocalMemoryUsed

        public int getLocalMemoryUsed()
        Description copied from interface: Hypervisor
        Gets the local memory used.
        Specified by:
        getLocalMemoryUsed in interface Hypervisor
        Returns:
        the local memory used
      • getHostIP

        public String getHostIP()
        Description copied from interface: Hypervisor
        Gets the host IP address
        Specified by:
        getHostIP in interface Hypervisor
        Returns:
        the host IP address
      • getStatus

        public String getStatus()
        Description copied from interface: Hypervisor

        Description:Gets the host status

        Author:Wang Ting/王婷

        Specified by:
        getStatus in interface Hypervisor
        Returns:
        the host status
      • getState

        public String getState()
        Description copied from interface: Hypervisor
        Gets the host state

        Author:Wang Ting/王婷

        Specified by:
        getState in interface Hypervisor
        Returns:
        the host state