Class EdgeIndexRecoverer
java.lang.Object
com.atlassian.confluence.plugins.edgeindex.EdgeIndexRecoverer
- All Implemented Interfaces:
IndexRecoverer
-
Constructor Summary
ConstructorsConstructorDescriptionEdgeIndexRecoverer(EdgeSearchIndexAccessor edgeSearchIndexAccessor, EdgeIndexBuilder edgeIndexBuilder) -
Method Summary
-
Constructor Details
-
EdgeIndexRecoverer
public EdgeIndexRecoverer(EdgeSearchIndexAccessor edgeSearchIndexAccessor, @Qualifier("edgeIndexBuilder") EdgeIndexBuilder edgeIndexBuilder)
-
-
Method Details
-
snapshot
Description copied from interface:IndexRecovererAllows taking a snapshot of the index.The snapshot should be taken in a safe way to prevent any write while it is copying index files over to the destination directory. Suggestions include to use LuceneConnection#snapshot(Directory) method or alternatively to take the snapshot with SnapshotDeletionPolicy.
- Specified by:
snapshotin interfaceIndexRecoverer- Parameters:
destDir- directory in which the snapshot should be saved
-
reset
Description copied from interface:IndexRecovererCloses the reader and the writer and create new ones.- Specified by:
resetin interfaceIndexRecoverer- Parameters:
replaceIndex- method that should be executed before the index has been closed and before the index has been reopened
-
reindex
public void reindex()Description copied from interface:IndexRecovererTrigger a reindex- Specified by:
reindexin interfaceIndexRecoverer
-