Uses of Interface
org.apache.sling.discovery.InstanceDescription
Packages that use InstanceDescription
Package
Description
Provides a service to interface which may be implemented by applications
to get notified on cluster topology changes.
Provides some common classes for discovery implementors that
choose to extend from discovery.base
Provides topology announcement implementations for discovery
implementors that choose to extend from discovery.base
Provides commons utility for users for the Discovery API.
Provides commons utility for providers of the Discovery API.
-
Uses of InstanceDescription in org.apache.sling.discovery
Methods in org.apache.sling.discovery that return InstanceDescriptionModifier and TypeMethodDescriptionClusterView.getLeader()
Provides the InstanceDescription belonging to the leader instance.TopologyView.getLocalInstance()
Provides the InstanceDescription belonging to this instance.Methods in org.apache.sling.discovery that return types with arguments of type InstanceDescriptionModifier and TypeMethodDescriptionTopologyView.findInstances
(InstanceFilter filter) Searches through this topology and picks those accepted by the providedInstanceFilter
- and returns them without any particular orderClusterView.getInstances()
Provides the list of InstanceDescriptions with a stable ordering.TopologyView.getInstances()
Provides the set of InstanceDescriptions in the entire topology, without any particular orderMethods in org.apache.sling.discovery with parameters of type InstanceDescriptionModifier and TypeMethodDescriptionboolean
InstanceFilter.accept
(InstanceDescription instance) Returns true if this InstanceFilter selects the given InstanceDescription. -
Uses of InstanceDescription in org.apache.sling.discovery.base.commons
Methods in org.apache.sling.discovery.base.commons that return InstanceDescriptionMethods in org.apache.sling.discovery.base.commons that return types with arguments of type InstanceDescriptionModifier and TypeMethodDescriptionDefaultTopologyView.findInstances
(InstanceFilter picker) DefaultTopologyView.getInstances()
Method parameters in org.apache.sling.discovery.base.commons with type arguments of type InstanceDescriptionModifier and TypeMethodDescriptionvoid
DefaultTopologyView.addInstances
(Collection<InstanceDescription> instances) Adds the given instances to this topologystatic boolean
ClusterViewHelper.containsAny
(ClusterView clusterView, Collection<InstanceDescription> listInstances) checks whether the cluster contains any of the provided instancesConstructor parameters in org.apache.sling.discovery.base.commons with type arguments of type InstanceDescriptionModifierConstructorDescriptionDefaultTopologyView
(Collection<InstanceDescription> instances) Create a new topology filled with the given list of instances -
Uses of InstanceDescription in org.apache.sling.discovery.base.connectors.announcement
Methods in org.apache.sling.discovery.base.connectors.announcement that return types with arguments of type InstanceDescriptionModifier and TypeMethodDescriptionAnnouncement.listInstances()
Returns the list of instances that are contained in this announcementAnnouncementRegistry.listInstances
(ClusterView localClusterView) Returns the list of instances contained in all non-expired announcements of this registryAnnouncementRegistryImpl.listInstances
(ClusterView localClusterView) -
Uses of InstanceDescription in org.apache.sling.discovery.commons
Methods in org.apache.sling.discovery.commons that return types with arguments of type InstanceDescriptionModifier and TypeMethodDescription@NotNull Collection<InstanceDescription>
InstancesDiff.InstanceCollection.get()
Return the collection ofInstanceDescription
instances that have not been filtered out. -
Uses of InstanceDescription in org.apache.sling.discovery.commons.providers
Classes in org.apache.sling.discovery.commons.providers that implement InstanceDescriptionModifier and TypeClassDescriptionclass
Base implementation for the InstanceDescription interface.class
InstanceDescription which represents an instance that is explicitly not local, ie isOwn==false.Methods in org.apache.sling.discovery.commons.providers that return InstanceDescriptionModifier and TypeMethodDescriptionBaseTopologyView.getInstance
(String slingId) Simple getter for a particular slingIdDefaultClusterView.getLeader()
DefaultClusterView.getLocalInstance()
Returns the local InstanceDescription or null if no local instance is listedMethods in org.apache.sling.discovery.commons.providers that return types with arguments of type InstanceDescriptionMethods in org.apache.sling.discovery.commons.providers with parameters of type InstanceDescriptionModifier and TypeMethodDescriptionboolean
DefaultClusterView.removeInstanceDescription
(InstanceDescription instance) Removes the given instance from this cluster. -
Uses of InstanceDescription in org.apache.sling.event.impl.jobs.config
Methods in org.apache.sling.event.impl.jobs.config that return types with arguments of type InstanceDescriptionModifier and TypeMethodDescriptionTopologyCapabilities.getInstanceCapabilities()
Get the instance capabilities.TopologyCapabilities.getPotentialTargets
(String jobTopic) Return the potential targets (Sling IDs) sorted by IDMethods in org.apache.sling.event.impl.jobs.config with parameters of type InstanceDescriptionModifier and TypeMethodDescriptionint
TopologyCapabilities.InstanceDescriptionComparator.compare
(InstanceDescription o1, InstanceDescription o2)