Class ConsistencyChecker


  • public class ConsistencyChecker
    extends Object
    • Constructor Detail

      • ConsistencyChecker

        public ConsistencyChecker()
    • Method Detail

      • onCheckRevision

        protected void onCheckRevision​(String revision)
      • onCheckHead

        protected void onCheckHead()
      • onCheckChekpoints

        protected void onCheckChekpoints()
      • onCheckCheckpoint

        protected void onCheckCheckpoint​(String checkpoint)
      • onCheckpointNotFoundInRevision

        protected void onCheckpointNotFoundInRevision​(String checkpoint)
      • onCheckRevisionError

        protected void onCheckRevisionError​(String revision,
                                            Exception e)
      • onConsistentPath

        protected void onConsistentPath​(String path)
      • onPathNotFound

        protected void onPathNotFound​(String path)
      • onCheckTree

        protected void onCheckTree​(String path,
                                   boolean head)
      • onCheckTreeEnd

        protected void onCheckTreeEnd​(boolean head)
      • onCheckNode

        protected void onCheckNode​(String path)
      • onCheckProperty

        protected void onCheckProperty()
      • onCheckPropertyEnd

        protected void onCheckPropertyEnd​(String path,
                                          org.apache.jackrabbit.oak.api.PropertyState property)
      • onCheckNodeError

        protected void onCheckNodeError​(String path,
                                        Exception e)
      • onCheckTreeError

        protected void onCheckTreeError​(String path,
                                        Exception e)
      • checkTreeConsistency

        public String checkTreeConsistency​(org.apache.jackrabbit.oak.spi.state.NodeState root,
                                           Set<String> corruptedPaths,
                                           boolean binaries)
        Check the consistency of a given subtree and returns the first inconsistent path. If provided, this method probes a set of inconsistent paths before performing a full traversal of the subtree.
        Parameters:
        root - The root node of the subtree.
        corruptedPaths - A set of possibly inconsistent paths.
        binaries - Whether to check binaries for consistency.
        Returns:
        The first inconsistent path or null. The path might be either one of the provided inconsistent paths or a new one discovered during a full traversal of the tree.