jigdo API

PartUrlMapping Class Reference

Object to enumerate all URLs for "Label:some/path". More...

#include <url-mapping.hh>

Inheritance diagram for PartUrlMapping:

UrlMapping SmartPtrBase NoCopy

List of all members.


Public Member Functions

string enumerate (vector< UrlMapping * > *best)
 You must not call the addServer() method of this object's UrlMap after calling enumerate().

Classes

struct  StackEntry

Detailed Description

Object to enumerate all URLs for "Label:some/path".

The order of preference for the enumeration can change dynamically, i.e. if the score of a server entry is decreased after several failed attempts to download from it, future weight calculations involving that server will take the decreased weight into account.


Member Function Documentation

string PartUrlMapping::enumerate ( vector< UrlMapping * > *  best  ) 

You must not call the addServer() method of this object's UrlMap after calling enumerate().

Otherwise, future results returned by this method will be complete nonsense. Enumerates all possible URLs, sorted by weight. Returns the empty string if all URLs enumerated. Internally, scans through the whole UrlMap each time, which can potentially take a long time.

References debug, and UrlMapping::next().

Referenced by Job::MakeImageDl::childFor(), and expectEnum().


The documentation for this class was generated from the following files:

Generated on Tue Sep 23 14:27:43 2008 for jigdo by  doxygen 1.5.6