Package org.apache.sling.discovery.base.commons


@Version("2.0.1") package org.apache.sling.discovery.base.commons
Provides some common classes for discovery implementors that choose to extend from discovery.base
Version:
1.1.0
  • Class
    Description
    Abstract base class for DiscoveryService implementations which uses the ClusterViewService plus Topology Connectors to calculate the current TopologyView
    The heartbeat handler is responsible and capable of issuing both local and remote heartbeats and registers a periodic job with the scheduler for doing so.
    Contains some static helper methods around ClusterView
    The ClusterViewService is capable of determining the ClusterView of the local cluster (ie of the instances that are all hooked to the same underlying repository).
    Default Implementation of the topology view interface
    Simple executor of a background job that periodically invokes a particular runnable - catching RuntimeExceptions that might throw - but not catching Errors (that terminates the BackgroundJob).
    This exception is thrown when the ClusterViewService does not have a cluster view that is valid.
     
    A ViewChecker is capable of issuing a heartbeat and subsequently checking the resulting, current view in the local cluster.