hu.mta.sztaki.lpds.cloud.simulator.energy.specialized
Class IaaSEnergyMeter

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.specialized.IaaSEnergyMeter
All Implemented Interfaces:
VMManager.CapacityChangeEvent<PhysicalMachine>, Comparable<Timed>

public class IaaSEnergyMeter
extends AggregatedEnergyMeter
implements VMManager.CapacityChangeEvent<PhysicalMachine>


Field Summary
private  IaaSService observed
           
private  ResourceConstraints oldCapacity
           
 
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
IaaSEnergyMeter(IaaSService iaas)
           
 
Method Summary
 void capacityChanged(ResourceConstraints newCapacity, List<PhysicalMachine> affectedCapacity)
           
 IaaSService getObserved()
           
private static List<EnergyMeter> subMeterCreator(List<PhysicalMachine> machines)
           
 
Methods inherited from class hu.mta.sztaki.lpds.cloud.simulator.energy.AggregatedEnergyMeter
getTotalConsumption, startMeter, stopMeter, 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
calcTimeJump, 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
 

Field Detail

observed

private final IaaSService observed

oldCapacity

private ResourceConstraints oldCapacity
Constructor Detail

IaaSEnergyMeter

public IaaSEnergyMeter(IaaSService iaas)
Method Detail

subMeterCreator

private static List<EnergyMeter> subMeterCreator(List<PhysicalMachine> machines)

capacityChanged

public void capacityChanged(ResourceConstraints newCapacity,
                            List<PhysicalMachine> affectedCapacity)
Specified by:
capacityChanged in interface VMManager.CapacityChangeEvent<PhysicalMachine>

getObserved

public IaaSService getObserved()


Copyright © 2012–2015 University of Innsbruck & MTA SZTAKI. All rights reserved.