Part of lp.registry.interfaces.distributionmirror View In Hierarchy
Method | __getitem__ | Return the DistributionMirror with the given id. |
Method | getMirrorsToProbe | Return all official mirrors with the given content type that need |
Method | getBestMirrorsForCountry | Return the best mirrors to be used by someone in the given country. |
Method | getByName | Return the mirror with the given name or None. |
Method | getByHttpUrl | Return the mirror with the given HTTP URL or None. |
Method | getByFtpUrl | Return the mirror with the given FTP URL or None. |
Method | getByRsyncUrl | Return the mirror with the given Rsync URL or None. |
A mirror needs to be probed either if it was never probed before or if it wasn't probed in the last PROBE_INTERVAL hours.
If ignore_last_probe is True, then all official mirrors of the given content type will be probed even if they were probed in the last PROBE_INTERVAL hours.
If limit is not None, then return at most limit mirrors, giving precedence to never probed ones followed by the ones probed longest ago.
The list of mirrors is composed by the official mirrors located in the given country (or in the country's continent if the country doesn't have any) plus the main mirror of that type.