HostStateHistoryEntry¶
-
public final class
HostStateHistoryEntry
¶ Keeps historic CPU utilization data about a host.
Author: Anton Beloglazov
Constructors¶
HostStateHistoryEntry¶
-
public
HostStateHistoryEntry
(double time, double allocatedMips, double requestedMips, boolean active)¶ Instantiates a host state history entry.
Parameters: - 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
Methods¶
getAllocatedMips¶
-
public double
getAllocatedMips
()¶ Gets the total MIPS allocated from all PEs of the Host, to running VMs, at the recorded time.
Returns: the allocated mips
getPercentUsage¶
-
public double
getPercentUsage
()¶ Gets the percentage (in scale from 0 to 1) of allocated MIPS from the total requested.
getRequestedMips¶
-
public double
getRequestedMips
()¶ Gets the total MIPS requested by running VMs to all PEs of the Host at the recorded time.
Returns: the requested mips