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.
|
Modifier and Type | Method and Description |
---|---|
InstanceDescription |
ClusterView.getLeader()
Provides the InstanceDescription belonging to the leader instance.
|
InstanceDescription |
TopologyView.getLocalInstance()
Provides the InstanceDescription belonging to this instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<InstanceDescription> |
TopologyView.findInstances(InstanceFilter filter)
Searches through this topology and picks those accepted by the provided
InstanceFilter - and returns them without any particular order |
java.util.List<InstanceDescription> |
ClusterView.getInstances()
Provides the list of InstanceDescriptions with a stable ordering.
|
java.util.Set<InstanceDescription> |
TopologyView.getInstances()
Provides the set of InstanceDescriptions in the entire topology,
without any particular order
|
Modifier and Type | Method and Description |
---|---|
boolean |
InstanceFilter.accept(InstanceDescription instance)
Returns true if this InstanceFilter selects the given InstanceDescription.
|
Modifier and Type | Method and Description |
---|---|
InstanceDescription |
DefaultTopologyView.getLocalInstance() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<InstanceDescription> |
DefaultTopologyView.findInstances(InstanceFilter picker) |
java.util.Set<InstanceDescription> |
DefaultTopologyView.getInstances() |
Modifier and Type | Method and Description |
---|---|
void |
DefaultTopologyView.addInstances(java.util.Collection<InstanceDescription> instances)
Adds the given instances to this topology
|
static boolean |
ClusterViewHelper.containsAny(ClusterView clusterView,
java.util.Collection<InstanceDescription> listInstances)
checks whether the cluster contains any of the provided instances
|
Constructor and Description |
---|
DefaultTopologyView(java.util.Collection<InstanceDescription> instances)
Create a new topology filled with the given list of instances
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<InstanceDescription> |
Announcement.listInstances()
Returns the list of instances that are contained in this announcement
|
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
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<InstanceDescription> |
InstancesDiff.InstanceCollection.get()
Return the collection of
InstanceDescription instances that have not been filtered out. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultInstanceDescription
Base implementation for the InstanceDescription interface.
|
class |
NonLocalInstanceDescription
InstanceDescription which represents an instance that is explicitly
not local, ie isOwn==false.
|
Modifier and Type | Method and Description |
---|---|
InstanceDescription |
BaseTopologyView.getInstance(java.lang.String slingId)
Simple getter for a particular slingId
|
InstanceDescription |
DefaultClusterView.getLeader() |
InstanceDescription |
DefaultClusterView.getLocalInstance()
Returns the local InstanceDescription or null if no local instance is listed
|
Modifier and Type | Method and Description |
---|---|
java.util.List<InstanceDescription> |
DefaultClusterView.getInstances() |
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultClusterView.removeInstanceDescription(InstanceDescription instance)
Removes the given instance from this cluster.
|
Copyright © 2018 The Apache Software Foundation. All rights reserved.