public class ConsistencyChecker
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ConsistencyChecker.ConsistencyCheckResult |
static class |
ConsistencyChecker.Revision |
Constructor and Description |
---|
ConsistencyChecker() |
Modifier and Type | Method and Description |
---|---|
ConsistencyChecker.ConsistencyCheckResult |
checkConsistency(ReadOnlyFileStore store,
java.util.Iterator<JournalEntry> journal,
boolean head,
java.util.Set<java.lang.String> checkpoints,
java.util.Set<java.lang.String> paths,
boolean binaries,
java.lang.Integer revisionsCount) |
java.lang.String |
checkTreeConsistency(NodeState root,
java.util.Set<java.lang.String> corruptedPaths,
boolean binaries)
Check the consistency of a given subtree and returns the first
inconsistent path.
|
protected void |
onCheckCheckpoint(java.lang.String checkpoint) |
protected void |
onCheckChekpoints() |
protected void |
onCheckHead() |
protected void |
onCheckNode(java.lang.String path) |
protected void |
onCheckNodeError(java.lang.String path,
java.lang.Exception e) |
protected void |
onCheckpointNotFoundInRevision(java.lang.String checkpoint) |
protected void |
onCheckProperty() |
protected void |
onCheckPropertyEnd(java.lang.String path,
PropertyState property) |
protected void |
onCheckRevision(java.lang.String revision) |
protected void |
onCheckRevisionError(java.lang.String revision,
java.lang.Exception e) |
protected void |
onCheckTree(java.lang.String path,
boolean head) |
protected void |
onCheckTreeEnd(boolean head) |
protected void |
onCheckTreeError(java.lang.String path,
java.lang.Exception e) |
protected void |
onConsistentPath(java.lang.String path) |
protected void |
onPathNotFound(java.lang.String path) |
protected void onCheckRevision(java.lang.String revision)
protected void onCheckHead()
protected void onCheckChekpoints()
protected void onCheckCheckpoint(java.lang.String checkpoint)
protected void onCheckpointNotFoundInRevision(java.lang.String checkpoint)
protected void onCheckRevisionError(java.lang.String revision, java.lang.Exception e)
protected void onConsistentPath(java.lang.String path)
protected void onPathNotFound(java.lang.String path)
protected void onCheckTree(java.lang.String path, boolean head)
protected void onCheckTreeEnd(boolean head)
protected void onCheckNode(java.lang.String path)
protected void onCheckProperty()
protected void onCheckPropertyEnd(java.lang.String path, PropertyState property)
protected void onCheckNodeError(java.lang.String path, java.lang.Exception e)
protected void onCheckTreeError(java.lang.String path, java.lang.Exception e)
public java.lang.String checkTreeConsistency(NodeState root, java.util.Set<java.lang.String> corruptedPaths, boolean binaries)
root
- The root node of the subtree.corruptedPaths
- A set of possibly inconsistent paths.binaries
- Whether to check binaries for consistency.null
. The path might be
either one of the provided inconsistent paths or a new one discovered
during a full traversal of the tree.public final ConsistencyChecker.ConsistencyCheckResult checkConsistency(ReadOnlyFileStore store, java.util.Iterator<JournalEntry> journal, boolean head, java.util.Set<java.lang.String> checkpoints, java.util.Set<java.lang.String> paths, boolean binaries, java.lang.Integer revisionsCount)
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.