Uses of Class
org.apache.sling.discovery.base.connectors.announcement.Announcement
Packages that use Announcement
Package
Description
Provides topology announcement implementations for discovery
implementors that choose to extend from discovery.base
-
Uses of Announcement in org.apache.sling.discovery.base.connectors.announcement
Methods in org.apache.sling.discovery.base.connectors.announcement that return AnnouncementModifier and TypeMethodDescriptionstatic AnnouncementCreate an announcement form jsonfinal AnnouncementCachedAnnouncement.getAnnouncement()Methods in org.apache.sling.discovery.base.connectors.announcement that return types with arguments of type AnnouncementModifier and TypeMethodDescriptionAnnouncementRegistry.listAnnouncementsInSameCluster(ClusterView localClusterView) list all announcements that were received by instances in the local clusterAnnouncementRegistryImpl.listAnnouncementsInSameCluster(ClusterView localClusterView) AnnouncementRegistry.listLocalAnnouncements()list all announcements that were received (incoming or inherited) by this instanceAnnouncementRegistryImpl.listLocalAnnouncements()Methods in org.apache.sling.discovery.base.connectors.announcement with parameters of type AnnouncementModifier and TypeMethodDescriptionbooleanAnnouncementFilter.accept(String receivingSlingId, Announcement announcement) Check if the provided announcement, which was received by the provided slingId can be accepted or not.voidAnnouncementRegistry.addAllExcept(Announcement target, ClusterView localClusterView, AnnouncementFilter filter) Add all registered announcements to the given target announcement that are accepted by the given filtervoidAnnouncementRegistryImpl.addAllExcept(Announcement target, ClusterView clusterView, AnnouncementFilter filter) voidAnnouncement.addIncomingTopologyAnnouncement(Announcement incomingTopologyAnnouncement) adds an incoming announcement to this announcementbooleanAnnouncement.correspondsTo(Announcement announcement) Compare this Announcement with another one, ignoring the 'created' property - which gets added to the JSON object automatically due to SLING-3389 wire-backwards-compatibility - and backoffInterval introduced as part of SLING-3382longAnnouncementRegistry.registerAnnouncement(Announcement topologyAnnouncement) Register the given announcement - and returns the backoff interval (in seconds) for stable connectors - or -1 if the registration was not successful (likely indicating a loop)longAnnouncementRegistryImpl.registerAnnouncement(Announcement topologyAnnouncement) voidAnnouncement.registerPing(Announcement incomingAnnouncement)