Part of lp.registry.interfaces.webservice View In Hierarchy
Int | id | Undocumented |
Attribute | displayname | Display name (deprecated) |
Attribute | title | The title of this mirror |
Attribute | cdimage_series | All MirrorCDImageDistroSeries of this mirror |
Attribute | source_series | All MirrorDistroSeriesSources of this mirror |
Attribute | arch_series | All MirrorDistroArchSeries of this mirror |
Attribute | last_probe_record | The last MirrorProbeRecord for this mirror. |
Attribute | all_probe_records | All MirrorProbeRecords for this mirror. |
Attribute | arch_mirror_freshness | The freshness of this mirror's archive mirrors |
Attribute | source_mirror_freshness | The freshness of this mirror's source mirrors |
Attribute | base_url | The HTTP or FTP base URL of this mirror |
Method | canTransitionToCountryMirror | Verify if a mirror can be set as a country mirror or return |
Method | transitionToCountryMirror | Method run on changing country_dns_mirror. |
Method | mirrorMustHaveHTTPOrFTPURL | Undocumented |
Method | getSummarizedMirroredSourceSeries | Return a summarized list of this distribution_mirror's |
Method | getSummarizedMirroredArchSeries | Return a summarized list of this distribution_mirror's |
Method | getOverallFreshness | Return this mirror's overall freshness. |
Method | isOfficial | Return True if this is an official mirror. |
Method | shouldDisable | Should this mirror be marked disabled? |
Method | disable | Disable this mirror and notify the distro's mirror admins by email. |
Method | resubmitForReview | Allow the owner (launchpad.Edit) to resubmit for review. |
Method | newProbeRecord | Create and return a new MirrorProbeRecord for this mirror. |
Method | deleteMirrorDistroArchSeries | Delete the MirrorDistroArchSeries with the given arch series and |
Method | ensureMirrorDistroArchSeries | Check if we have a MirrorDistroArchSeries with the given arch |
Method | ensureMirrorDistroSeriesSource | Check if we have a MirrorDistroSeriesSource with the given distro |
Method | deleteMirrorDistroSeriesSource | Delete the MirrorDistroSeriesSource with the given distro series, |
Method | ensureMirrorCDImageSeries | Check if we have a MirrorCDImageDistroSeries with the given |
Method | deleteMirrorCDImageSeries | Delete the MirrorCDImageDistroSeries with the given arch |
Method | deleteAllMirrorCDImageSeries | Delete all MirrorCDImageDistroSeriess of this mirror. |
Method | getExpectedPackagesPaths | Get all paths where we can find Packages.gz files on this mirror. |
Method | getExpectedSourcesPaths | Get all paths where we can find Sources.gz files on this mirror. |
Summarized, in this case, means that it ignores pocket and components and returns the MirrorDistroSeriesSource with the worst freshness for each distroseries of this distribution mirror.
Summarized, in this case, means that it ignores pocket and components and returns the MirrorDistroArchSeries with the worst freshness for each distro_arch_series of this distribution mirror.
For ARCHIVE mirrors, the overall freshness is the worst freshness of all of this mirror's content objects (MirrorDistroArchSeries, MirrorDistroSeriesSource or MirrorCDImageDistroSeriess).
For RELEASE mirrors, the overall freshness is either UPTODATE, if the mirror contains all ISO images that it should or UNKNOWN if it doesn't contain one or more ISO images.
If this is a RELEASE mirror then expected_file_count must not be None, and it should be disabled if the number of cdimage_series it contains is smaller than the given expected_file_count.
If this is an ARCHIVE mirror, then it should be disabled only if it has no content at all.
We could use len(get_expected_cdimage_paths()) to obtain the expected_file_count, but that's not a good idea because that method gets the expected paths from releases.ubuntu.com, which is something we don't have control over.
Disable this mirror and notify the distro's mirror admins by email. :param notify_owner: If True, an identical notification is sent to the mirror owner. :param log: The log of requests/responses from the last time this mirror was probed. This is only necessary because we want to include a snippet of the log in the email notification but the content can only be read back from the librarian after we commit the transaction (and we really don't want to do it here). This method can't be called before a probe record has been created because we'll link to the latest probe record in the email we send to notify the owner. The notification(s) are actually sent only if this mirror was previously enabled or if it was probed only once.
Only allows the transition state from 'Broken' to 'Pending Review'.
Return that MirrorDistroArchSeries.
Return that MirrorDistroSeriesSource.
Return that MirrorCDImageDistroSeries.