public interface AnnouncementRegistry
Modifier and Type | Method and Description |
---|---|
void |
addAllExcept(Announcement target,
ClusterView localClusterView,
AnnouncementFilter filter)
Add all registered announcements to the given target announcement that are accepted by the given filter
|
void |
checkExpiredAnnouncements()
Check for expired announcements and remove any if applicable
|
boolean |
hasActiveAnnouncement(String ownerId)
Whether or not the given owner has an active (ie not expired) announcement registered
|
Collection<Announcement> |
listAnnouncementsInSameCluster(ClusterView localClusterView)
list all announcements that were received by instances in the local cluster
|
Collection<InstanceDescription> |
listInstances(ClusterView localClusterView)
Returns the list of instances contained in all non-expired announcements of this registry
|
Collection<Announcement> |
listLocalAnnouncements()
list all announcements that were received (incoming or inherited) by this instance
|
Collection<CachedAnnouncement> |
listLocalIncomingAnnouncements()
list all announcements that this instance received (incoming)
|
long |
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)
|
void |
unregisterAnnouncement(String ownerId)
Unregister the announcement owned by the given slingId
|
long registerAnnouncement(Announcement topologyAnnouncement)
Collection<Announcement> listAnnouncementsInSameCluster(ClusterView localClusterView)
Collection<Announcement> listLocalAnnouncements()
Collection<CachedAnnouncement> listLocalIncomingAnnouncements()
void checkExpiredAnnouncements()
Collection<InstanceDescription> listInstances(ClusterView localClusterView)
void addAllExcept(Announcement target, ClusterView localClusterView, AnnouncementFilter filter)
void unregisterAnnouncement(String ownerId)
boolean hasActiveAnnouncement(String ownerId)
Copyright © 2017 The Apache Software Foundation. All rights reserved.