public class ConsistencyCheckerImpl extends Object
Constructor and Description |
---|
ConsistencyCheckerImpl(AbstractBundlePersistenceManager pm,
ConsistencyCheckListener listener,
String lostNFoundId,
UpdateEventChannel eventChannel) |
Modifier and Type | Method and Description |
---|---|
void |
check(String[] uuids,
boolean recursive)
Check the database for inconsistencies.
|
void |
doubleCheckErrors()
Do a double check on the errors found during
check(java.lang.String[], boolean) . |
ConsistencyReport |
getReport()
Return the report of a consistency
check(java.lang.String[], boolean) / doubleCheckErrors() / repair() |
protected boolean |
isVirtualNode(NodeId nodeId) |
void |
repair()
Repair any errors found during a
check(java.lang.String[], boolean) . |
public ConsistencyCheckerImpl(AbstractBundlePersistenceManager pm, ConsistencyCheckListener listener, String lostNFoundId, UpdateEventChannel eventChannel)
public void check(String[] uuids, boolean recursive) throws javax.jcr.RepositoryException
uuids
- a list of node identifiers to check or null
in order to check all nodesrecursive
- whether to recursively check the subtrees below the nodes identified by the provided uuidsjavax.jcr.RepositoryException
public void doubleCheckErrors()
check(java.lang.String[], boolean)
.
Removes all false positives from the report.public ConsistencyReport getReport()
check(java.lang.String[], boolean)
/ doubleCheckErrors()
/ repair()
public void repair() throws javax.jcr.RepositoryException
check(java.lang.String[], boolean)
. Should be run after a {#check} and
(if needed) doubleCheckErrors()
.javax.jcr.RepositoryException
protected boolean isVirtualNode(NodeId nodeId)
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.