public final class
Keeps historic CPU utilization data about a host.
Author: Anton Beloglazov
HostStateHistoryEntry(double time, double allocatedMips, double requestedMips, boolean active)¶
Instantiates a host state history entry.
- time – the time the data in this history entry is related to
- allocatedMips – the total MIPS allocated from all PEs of the Host, to running VMs, at the recorded time
- requestedMips – the total MIPS requested by running VMs to all PEs of the Host at the recorded time
- active – if the Host is active at the given time
Gets the total MIPS allocated from all PEs of the Host, to running VMs, at the recorded time.
Returns: the allocated mips
Gets the percentage (in scale from 0 to 1) of allocated MIPS from the total requested.
Gets the total MIPS requested by running VMs to all PEs of the Host at the recorded time.
Returns: the requested mips
Checks if the Host is/was active at the recorded time.
Returns: true if is active, false otherwise