Class ContentIndexRecoverer
java.lang.Object
com.atlassian.confluence.impl.index.ContentIndexRecoverer
- All Implemented Interfaces:
IndexRecoverer
IndexRecoverer for the content index. This class uses setter injection as it is instantiated via
ConfluencePluginUtils.instantiatePluginModule(Plugin, Class)
but does
not implement ContainerManagedPlugin
so autowiring happens by name.- Since:
- 7.9.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
reindex()
Trigger a reindexvoid
Closes the reader and the writer and create new ones.void
setFullReindexManager
(@NonNull FullReindexManager fullReindexManager) Autowired by spring setter injectionvoid
setLuceneConnection
(@NonNull ILuceneConnection luceneConnection) Autowired by spring setter injectionvoid
Allows taking a snapshot of the index.
-
Constructor Details
-
ContentIndexRecoverer
public ContentIndexRecoverer()
-
-
Method Details
-
snapshot
Description copied from interface:IndexRecoverer
Allows 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:
snapshot
in interfaceIndexRecoverer
- Parameters:
destDir
- directory in which the snapshot should be saved- Throws:
IOException
-
reset
Description copied from interface:IndexRecoverer
Closes the reader and the writer and create new ones.- Specified by:
reset
in 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:IndexRecoverer
Trigger a reindex- Specified by:
reindex
in interfaceIndexRecoverer
-
setLuceneConnection
Autowired by spring setter injection -
setFullReindexManager
Autowired by spring setter injection
-