@Deprecated @PublicSpi @ParametersAreNonnullByDefault public interface IndexRecoverer
| Modifier and Type | Method and Description |
|---|---|
void |
reindex()
Deprecated.
Trigger a reindex
|
void |
reset(Runnable replaceIndex)
Deprecated.
Closes the reader and the writer and create new ones.
|
void |
snapshot(File destDir)
Deprecated.
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 savedIOExceptionvoid 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–2022 Atlassian. All rights reserved.