hu.mta.sztaki.lpds.cloud.simulator.energy.specialized
Class SimpleVMEnergyMeter
java.lang.Object
hu.mta.sztaki.lpds.cloud.simulator.Timed
hu.mta.sztaki.lpds.cloud.simulator.energy.EnergyMeter
hu.mta.sztaki.lpds.cloud.simulator.energy.AggregatedEnergyMeter
hu.mta.sztaki.lpds.cloud.simulator.energy.specialized.PhysicalMachineEnergyMeter
hu.mta.sztaki.lpds.cloud.simulator.energy.specialized.SimpleVMEnergyMeter
- All Implemented Interfaces:
- VMManager.CapacityChangeEvent<ResourceConstraints>, Comparable<Timed>
public class SimpleVMEnergyMeter
- extends PhysicalMachineEnergyMeter
Derives VM consumption from its hosting PM.
Does not support migrations, and provides only a rough estimate on the energy
cost of actions taken by the particular VM.
- Author:
- gaborkecskemeti
Methods inherited from class hu.mta.sztaki.lpds.cloud.simulator.Timed |
calcTimeJump, compareTo, fire, getFireCount, getFrequency, getNextEvent, getNextFire, isSubscribed, jumpTime, nextEventDistance, resetTimed, setBackPreference, simulateUntil, simulateUntilLastEvent, skipEventsTill, subscribe, toString, unsubscribe, updateFrequency |
SimpleVMEnergyMeter
public SimpleVMEnergyMeter(VirtualMachine vm)
- Cannot be created for unallocated VMs!
- Parameters:
vm
-
getTotalConsumption
public double getTotalConsumption()
- cons(PM)/NumVMs(PM)
- Overrides:
getTotalConsumption
in class AggregatedEnergyMeter
- Returns:
Copyright © 2012–2015 University of Innsbruck & MTA SZTAKI. All rights reserved.