l.r.i.d.IDistributionMirrorSet(Interface) : interface documentation

Part of lp.registry.interfaces.distributionmirror View In Hierarchy

The set of DistributionMirrors
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.
def __getitem__(mirror_id):
Return the DistributionMirror with the given id.
def getMirrorsToProbe(content_type, ignore_last_probe=False, limit=None):
Return all official mirrors with the given content type that need to be probed.

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.

def getBestMirrorsForCountry(country, mirror_type):
Return the best mirrors to be used by someone in the given country.

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.

def getByName(name):
Return the mirror with the given name or None.
def getByHttpUrl(url):
Return the mirror with the given HTTP URL or None.
def getByFtpUrl(url):
Return the mirror with the given FTP URL or None.
def getByRsyncUrl(url):
Return the mirror with the given Rsync URL or None.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.