# Package org.apache.sling.discovery.commons.providers

@Version("1.0.0") package org.apache.sling.discovery.commons.providers
Provides commons utility for providers of the Discovery API.

Version:
  1.0.0

Related Packages
Package
Description
org.apache.sling.discovery.commons
Provides commons utility for users for the Discovery API.
org.apache.sling.discovery.commons.providers.base
Provides commons implementations for providers of the Discovery API.
org.apache.sling.discovery.commons.providers.spi
Provides an SPI for providers, used by discovery.commons.providers.impl
org.apache.sling.discovery.commons.providers.util
Provides some static helpers for providers of the Discovery API.
Class
Description
BaseTopologyView
Very simple abstract base class for the TopologyView which comes with the 'setNotCurrent()' method - that allows the ViewStateManager to mark a topologyView as no longer current - and the isCurrent() is handled accordingly.
DefaultClusterView
Default implementation of the ClusterView interface.
DefaultInstanceDescription
Base implementation for the InstanceDescription interface.
EventHelper
Contains static factory methods for creating TopologyEvents with BaseTopologyView as well as some TopologyEvent related helper methods
NonLocalInstanceDescription
InstanceDescription which represents an instance that is explicitly not local, ie isOwn==false.
ViewStateManager
The ViewStateManager is at the core of managing TopologyEventListeners, the 'view state' (changing vs changed) and sending out the appropriate and according TopologyEvents to the registered listeners - depending on the implementation it also supports the ClusterSyncService, which is invoked on handleNewView.