c.l.l.UnreferencedLibraryFileAliasPruner : class documentation

Part of canonical.librarian.librariangc View In Hierarchy

Implements interfaces: canonical.launchpad.interfaces.looptuner.ITunableLoop

Delete unreferenced LibraryFileAliases.

The LibraryFileContent records are left untouched for the code that knows how to delete them and the corresponding files on disk.

This is the second step in a full garbage collection sweep. We determine which LibraryFileAlias entries are not being referenced by other objects in the database and delete them, if they are expired (expiry in the past or NULL), and if they have not been recently accessed (last_access over one week in the past).

Method __init__ Undocumented
Method isDone Is this loop finished?
Method __call__ Perform an iteration of the loop.
def __init__(self, con):
Undocumented
def isDone(self):
Is this loop finished?

Once this returns True, the LoopTuner will no longer touch this object.

def __call__(self, chunksize):
Perform an iteration of the loop.

The chunk_size parameter says (in some way you define) how much work the LoopTuner believes you should try to do in this iteration in order to get as close as possible to your time goal.

API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.