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 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 uuidsRepositoryException
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 RepositoryException
check(java.lang.String[], boolean)
. Should be run after a {#check} and
(if needed) doubleCheckErrors()
.RepositoryException
protected boolean isVirtualNode(NodeId nodeId)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.