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
-
ClassDescriptionBase 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 interfaceProvides the configuration of a few paths needed by discovery-lite processing servicesSimplifies access to the underlying JSON-backed oak discovery-lite descriptorThe 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.