Package | Description |
---|---|
org.apache.sling.discovery |
Provides a service to interface which may be implemented by applications
to get notified on cluster topology changes.
|
org.apache.sling.discovery.base.commons |
Provides some common classes for discovery implementors that
choose to extend from discovery.base
|
org.apache.sling.discovery.base.connectors.announcement |
Provides topology announcement implementations for discovery
implementors that choose to extend from discovery.base
|
org.apache.sling.discovery.commons |
Provides commons utility for users for the Discovery API.
|
org.apache.sling.discovery.commons.providers |
Provides commons utility for providers of the Discovery API.
|
org.apache.sling.discovery.commons.providers.spi |
Provides an SPI for providers, used by discovery.commons.providers.impl
|
Modifier and Type | Method and Description |
---|---|
ClusterView |
InstanceDescription.getClusterView()
Returns the ClusterView of which this instance is part of.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<ClusterView> |
TopologyView.getClusterViews()
Provides the collection of ClusterViews.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<ClusterView> |
DefaultTopologyView.getClusterViews() |
Modifier and Type | Method and Description |
---|---|
static boolean |
ClusterViewHelper.contains(ClusterView clusterView,
java.lang.String slingId)
checks whether the cluster view contains a particular sling id
|
static boolean |
ClusterViewHelper.containsAny(ClusterView clusterView,
java.util.Collection<InstanceDescription> listInstances)
checks whether the cluster contains any of the provided instances
|
Modifier and Type | Method and Description |
---|---|
void |
AnnouncementRegistryImpl.addAllExcept(Announcement target,
ClusterView clusterView,
AnnouncementFilter filter) |
void |
AnnouncementRegistry.addAllExcept(Announcement target,
ClusterView localClusterView,
AnnouncementFilter filter)
Add all registered announcements to the given target announcement that are accepted by the given filter
|
java.util.Collection<Announcement> |
AnnouncementRegistryImpl.listAnnouncementsInSameCluster(ClusterView localClusterView) |
java.util.Collection<Announcement> |
AnnouncementRegistry.listAnnouncementsInSameCluster(ClusterView localClusterView)
list all announcements that were received by instances in the local cluster
|
java.util.Collection<InstanceDescription> |
AnnouncementRegistryImpl.listInstances(ClusterView localClusterView) |
java.util.Collection<InstanceDescription> |
AnnouncementRegistry.listInstances(ClusterView localClusterView)
Returns the list of instances contained in all non-expired announcements of this registry
|
void |
Announcement.setLocalCluster(ClusterView localCluster)
sets the local clusterview
|
Modifier and Type | Method and Description |
---|---|
@NotNull InstancesDiff.InstanceCollection |
InstancesDiff.InstanceCollection.isInClusterView(@Nullable ClusterView clusterView)
Keep only the instances that are contained in the same
ClusterView cluster view
as the one provided. |
@NotNull InstancesDiff.InstanceCollection |
InstancesDiff.InstanceCollection.isNotInClusterView(@Nullable ClusterView clusterView)
Filter out the instances that are contained in the same
ClusterView cluster view
as the one provided. |
Constructor and Description |
---|
InstancesDiff(@NotNull ClusterView oldView,
@NotNull ClusterView newView)
Create a new
InstancesDiff based on the instances from the old and
new ClusterView cluster views provided. |
InstancesDiff(@NotNull ClusterView oldView,
@NotNull ClusterView newView)
Create a new
InstancesDiff based on the instances from the old and
new ClusterView cluster views provided. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultClusterView
Default implementation of the ClusterView interface.
|
Modifier and Type | Method and Description |
---|---|
ClusterView |
DefaultInstanceDescription.getClusterView() |
Modifier and Type | Class and Description |
---|---|
class |
LocalClusterView |
Copyright © 2022 The Apache Software Foundation. All rights reserved.