VmUtilizationHistory

public class VmUtilizationHistory implements UtilizationHistory

Stores resource utilization data for a specific Vm.

Author:Anton Beloglazov, Manoel Campos da Silva Filho

Constructors

VmUtilizationHistory

public VmUtilizationHistory(Vm vm, boolean enabled)

Instantiates the class to store resource utilization history for a specific Vm.

Parameters:
  • vm – the vm to instantiates the object to store utilization history
  • enabled – true if the history must be enabled by default, enabling usage history to be collected and stored; false if it must be disabled to avoid storing any history, in order to reduce memory usage

VmUtilizationHistory

public VmUtilizationHistory(Vm vm)

Methods

addUtilizationHistory

public void addUtilizationHistory(double time)

disable

public void disable()

enable

public void enable()

getHistory

public SortedMap<Double, Double> getHistory()

getMaxHistoryEntries

public int getMaxHistoryEntries()

getUtilizationMad

public double getUtilizationMad()

getUtilizationMean

public double getUtilizationMean()

getUtilizationVariance

public double getUtilizationVariance()

getVm

public Vm getVm()

isEnabled

public boolean isEnabled()

setMaxHistoryEntries

public void setMaxHistoryEntries(int maxHistoryEntries)