hu.mta.sztaki.lpds.cloud.simulator.energy.specialized
Class PhysicalMachineEnergyMeter
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
- All Implemented Interfaces:
- VMManager.CapacityChangeEvent<ResourceConstraints>, Comparable<Timed>
- Direct Known Subclasses:
- SimpleVMEnergyMeter
public class PhysicalMachineEnergyMeter
- extends AggregatedEnergyMeter
- implements VMManager.CapacityChangeEvent<ResourceConstraints>
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 |
observed
private final PhysicalMachine observed
PhysicalMachineEnergyMeter
public PhysicalMachineEnergyMeter(PhysicalMachine pm)
startMeter
public boolean startMeter(long interval,
boolean dropPriorReading)
- Description copied from class:
AggregatedEnergyMeter
- Dispatches start meter calls to all supervised meters. If even one of
them fails, it immediately terminates those meters that were started
before the failure.
- Overrides:
startMeter
in class AggregatedEnergyMeter
- Parameters:
interval
- The meter refresh frequency.dropPriorReading
-
False: the totalConsumption values will accumulate from a
previous metering session True: the totalconsumption
values will start from 0 after the completion of this
function.
- Returns:
- False: if a metering session is already underway
- True: if the metering session was successfully initiated
stopMeter
public void stopMeter()
- Description copied from class:
AggregatedEnergyMeter
- Dispatches stop meter calls to all supervised meters
- Overrides:
stopMeter
in class AggregatedEnergyMeter
capacityChanged
public void capacityChanged(ResourceConstraints newCapacity,
List<ResourceConstraints> affectedCapacity)
- Specified by:
capacityChanged
in interface VMManager.CapacityChangeEvent<ResourceConstraints>
getObserved
public PhysicalMachine getObserved()
Copyright © 2012–2015 University of Innsbruck & MTA SZTAKI. All rights reserved.