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


@Version("2.1.0") package org.apache.sling.discovery.commons.providers.spi.base
Provides default SPI-implementations used by discovery.commons.providers.impl
Version:
2.0.0
  • Class
    Description
    Base class which implements the concept of a 'BackgroundCheck', a thread that periodically executes a check until that one succeeds.
     
    Allows chaining of ClusterSyncService, itself implementing the ClusterSyncService interface
    Provides the configuration of a few paths needed by discovery-lite processing services
    Simplifies access to the underlying JSON-backed oak discovery-lite descriptor
    The IdMapService is responsible for storing a slingId-clusterNodeId pair to the repository and given all other instances in the cluster do the same can map clusterNodeIds to slingIds (or vice-versa)
    The OakBacklogClusterSyncService will wait until all instances in the local cluster are no longer in any backlog state.
    Implements the syncToken idea: each instance stores a key-value pair with key=stringId and value=discoveryLiteSequenceNumber under /var/discovery/oak/syncTokens - and then waits until it sees the same token from all other instances in the cluster.