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 void
check(String[] uuids, boolean recursive)
Check the database for inconsistencies.void
doubleCheckErrors()
Do a double check on the errors found duringcheck(java.lang.String[], boolean)
.ConsistencyReport
getReport()
Return the report of a consistencycheck(java.lang.String[], boolean)
/doubleCheckErrors()
/repair()
protected boolean
isVirtualNode(NodeId nodeId)
void
repair()
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 ornull
in 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 RepositoryException
Repair 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)
-
-