hu.mta.sztaki.lpds.cloud.simulator.energy
Class SimpleVMEnergyMeter

java.lang.Object
  extended by hu.mta.sztaki.lpds.cloud.simulator.Timed
      extended by hu.mta.sztaki.lpds.cloud.simulator.energy.EnergyMeter
          extended by hu.mta.sztaki.lpds.cloud.simulator.energy.AggregatedEnergyMeter
              extended by hu.mta.sztaki.lpds.cloud.simulator.energy.PhysicalMachineEnergyMeter
                  extended by hu.mta.sztaki.lpds.cloud.simulator.energy.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

Field Summary
 
Fields inherited from class hu.mta.sztaki.lpds.cloud.simulator.energy.AggregatedEnergyMeter
supervised
 
Fields inherited from class hu.mta.sztaki.lpds.cloud.simulator.energy.EnergyMeter
lastMetered
 
Constructor Summary
SimpleVMEnergyMeter(VirtualMachine vm)
          Cannot be created for unallocated VMs!
 
Method Summary
 double getTotalConsumption()
          cons(PM)/NumVMs(PM)
 
Methods inherited from class hu.mta.sztaki.lpds.cloud.simulator.energy.PhysicalMachineEnergyMeter
capacityChanged, getObserved, startMeter, stopMeter
 
Methods inherited from class hu.mta.sztaki.lpds.cloud.simulator.energy.AggregatedEnergyMeter
tick
 
Methods inherited from class hu.mta.sztaki.lpds.cloud.simulator.energy.EnergyMeter
getMeteringStarted, getMeteringStopped, increaseTotalConsumption, readjustMeter
 
Methods inherited from class hu.mta.sztaki.lpds.cloud.simulator.Timed
compareTo, fire, getFireCount, getFrequency, getNextEvent, getNextFire, isSubscribed, jumpTime, nextEventDistance, resetTimed, setBackPreference, simulateUntil, simulateUntilLastEvent, skipEventsTill, subscribe, toString, unsubscribe, updateFrequency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleVMEnergyMeter

public SimpleVMEnergyMeter(VirtualMachine vm)
Cannot be created for unallocated VMs!

Parameters:
vm -
Method Detail

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.