|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.backup.ConsistencyCheck
public class ConsistencyCheck
Nested Class Summary | |
---|---|
static interface |
ConsistencyCheck.ProgressCallback
|
Constructor Summary | |
---|---|
ConsistencyCheck(DBBroker broker)
|
Method Summary | |
---|---|
List |
checkAll(ConsistencyCheck.ProgressCallback callback)
Combines checkCollectionTree(ConsistencyCheck.ProgressCallback) and
checkDocuments(ConsistencyCheck.ProgressCallback) . |
List |
checkCollectionTree(ConsistencyCheck.ProgressCallback callback)
Run some tests on the collection hierarchy, starting at the root collection /db. |
List |
checkDocuments(ConsistencyCheck.ProgressCallback progress)
Run some tests on all documents stored in the database. |
void |
checkDocuments(ConsistencyCheck.ProgressCallback progress,
List errorList)
Run some tests on all documents stored in the database. |
ErrorReport |
checkXMLTree(DocumentImpl doc)
Check the persistent DOM of a document. |
int |
getDocumentCount()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsistencyCheck(DBBroker broker)
Method Detail |
---|
public List checkAll(ConsistencyCheck.ProgressCallback callback)
checkCollectionTree(ConsistencyCheck.ProgressCallback)
and
checkDocuments(ConsistencyCheck.ProgressCallback)
.
callback
- the callback object to report to
ErrorReport
objects or
an empty list if no errors were foundpublic List checkCollectionTree(ConsistencyCheck.ProgressCallback callback)
callback
- callback object
ErrorReport
instances describing the errors foundpublic int getDocumentCount()
public List checkDocuments(ConsistencyCheck.ProgressCallback progress)
progress
- progress callback
ErrorReport
instances describing the errors foundpublic void checkDocuments(ConsistencyCheck.ProgressCallback progress, List errorList)
progress
- progress callbackerrorList
- error reports will be added to this list, using instances
of class ErrorReport
.public ErrorReport checkXMLTree(DocumentImpl doc)
doc
- the document to check
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |