Class ConsistencyCheckerImpl
- java.lang.Object
-
- org.apache.jackrabbit.core.persistence.bundle.ConsistencyCheckerImpl
-
public class ConsistencyCheckerImpl extends Object
-
-
Constructor Summary
Constructors Constructor Description ConsistencyCheckerImpl(AbstractBundlePersistenceManager pm, ConsistencyCheckListener listener, String lostNFoundId, UpdateEventChannel eventChannel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck(String[] uuids, boolean recursive)Check the database for inconsistencies.voiddoubleCheckErrors()Do a double check on the errors found duringcheck(java.lang.String[], boolean).ConsistencyReportgetReport()Return the report of a consistencycheck(java.lang.String[], boolean)/doubleCheckErrors()/repair()protected booleanisVirtualNode(NodeId nodeId)voidrepair()Repair any errors found during acheck(java.lang.String[], boolean).
-
-
-
Constructor Detail
-
ConsistencyCheckerImpl
public ConsistencyCheckerImpl(AbstractBundlePersistenceManager pm, ConsistencyCheckListener listener, String lostNFoundId, UpdateEventChannel eventChannel)
-
-
Method Detail
-
check
public void check(String[] uuids, boolean recursive) throws RepositoryException
Check the database for inconsistencies.- Parameters:
uuids- a list of node identifiers to check ornullin order to check all nodesrecursive- whether to recursively check the subtrees below the nodes identified by the provided uuids- Throws:
RepositoryException
-
doubleCheckErrors
public void doubleCheckErrors()
Do a double check on the errors found duringcheck(java.lang.String[], boolean). Removes all false positives from the report.
-
getReport
public ConsistencyReport getReport()
Return the report of a consistencycheck(java.lang.String[], boolean)/doubleCheckErrors()/repair()
-
repair
public void repair() throws RepositoryExceptionRepair any errors found during acheck(java.lang.String[], boolean). Should be run after a {#check} and (if needed)doubleCheckErrors().- Throws:
RepositoryException
-
isVirtualNode
protected boolean isVirtualNode(NodeId nodeId)
-
-