| Home | Trees | Indices | Help |
|---|
|
|
Persistence manager.
The persistence manager is in charge of persisting leases, and some scheduling data, to disk. This allows Haizea to recover from crashes.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Constructor
Initializes the persistence manager. If the specified file
does not exist, it is created. If the file is created, it
is opened but the information is not recovered (this is
the responsibility of the Manager class)
Arguments:
file -- Persistence file. If None is specified, then
persistence is disabled and Haizea will run entirely
in-memory.
|
Persists a single lease to disk Arguments: lease -- Lease to persist |
Persists the queue to disk Arguments: queue -- The queue |
Persists the set of future leases Arguments: leases -- "Future leases" (as determined by backfilling algorithm) |
Closes the persistence manager. Closing the persistence manager saves any remaining data to disk. |
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Dec 17 10:59:20 2009 | http://epydoc.sourceforge.net |