@PublicSpi @ParametersAreNonnullByDefault public interface IndexRecoverer
Modifier and Type | Method and Description |
---|---|
void |
reindex()
Trigger a reindex
|
void |
reset(Runnable replaceIndex)
Closes the reader and the writer and create new ones.
|
void |
snapshot(File destDir)
Allows taking a snapshot of the index.
|
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 savedIOException
void reset(Runnable replaceIndex)
replaceIndex
- method that should be executed before the index has been closed and before the index has been reopenedvoid reindex()
Copyright © 2003–2017 Atlassian. All rights reserved.