Home | Trees | Indices | Help |
---|
|
Accounting data collection
This class provides a framework to collect data while Haizea is running. It is designed so that the code that collects the data is placed in separate classes (the "probes"; a probe must be a child class of AccountingProbe). Probes can collect three types of data:
Accounting probes can collect three types of data:
The the AccountingDataCollection class takes care of calling these probes at three points when Haizea is running: (1) at every time step, (2) when a lease is requested, and (3) when a lease is done.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
AVERAGE_NONE = 0
|
|||
AVERAGE_NORMAL = 1
|
|||
AVERAGE_TIMEWEIGHTED = 2
|
|
|||
Inherited from |
|
Constructor
|
Adds a new accounting probe
|
Adds a new counter. Counters can store not just the value of the counter throughout time, but also a running average. This is specified with the avgtype parameter, which can be equal to:
|
Adds a new per-lease type of data ("stat").
|
Adds a new per-run type of data ("stat").
|
Increment a counter
|
Decrement a counter
|
Append a value to a counter
|
Set the value of a per-lease datum
|
Set the value of a per-run datum
|
Start collecting data
|
Save accounting data to disk.
|
Invoke the probes' at_timestep handlers.
|
Invoke the probes' at_lease_request handlers.
|
Invoke the probes' at_lease_done handlers.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Dec 17 10:59:19 2009 | http://epydoc.sourceforge.net |