[Haizea] SlotTable in at_timestep method of AccountingProbe

Borja Sotomayor borja at borjanet.com
Wed Oct 20 14:05:55 CDT 2010


Hi,

> I would like to use SlotTable and have current time in at_timestep
> method of AccountingProbe, are the following additions the best change
> to achieve this?

You could do it this way, but that's not a change that I would commit
to Haizea, since I want to keep the accounting probes as decoupled as
possible from the core code.

To get the current time, use the get_clock() function in haizea.common.utils

Adding the slottable as an attribute of AccountingDataCollection seems
like overkill. You can access it from at_timestep through
lease_scheduler.slottable.

Cheers!
-- 
Borja Sotomayor
-Scientific Writer at UChicago's Computation Institute
http://people.cs.uchicago.edu/~borja/
-Community Manager for the OpenNebula project
http://www.opennebula.org/


More information about the Haizea mailing list