void snapshot(File destDir) throws IOException
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.
destDir- directory in which the snapshot should be saved
void reset(Runnable replaceIndex)
replaceIndex- method that should be executed before the index has been closed and before the index has been reopened
Copyright © 2003–2016 Atlassian. All rights reserved.