public class ContentIndexRecoverer extends Object implements IndexRecoverer
ConfluencePluginUtils.instantiatePluginModule(Plugin, Class) but does
not implement ContainerManagedPlugin so autowiring happens by name.| Constructor and Description |
|---|
ContentIndexRecoverer() |
| Modifier and Type | Method and Description |
|---|---|
void |
reindex()
Trigger a reindex
|
void |
reset(@NonNull Runnable replaceIndex)
Closes the reader and the writer and create new ones.
|
void |
setFullReindexManager(@NonNull FullReindexManager fullReindexManager)
Autowired by spring setter injection
|
void |
setLuceneConnection(@NonNull com.atlassian.bonnie.ILuceneConnection luceneConnection)
Autowired by spring setter injection
|
void |
snapshot(@NonNull File destDir)
Allows taking a snapshot of the index.
|
public void snapshot(@NonNull File destDir) throws IOException
IndexRecovererThe 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.
snapshot in interface IndexRecovererdestDir - directory in which the snapshot should be savedIOExceptionpublic void reset(@NonNull Runnable replaceIndex)
IndexRecovererreset in interface IndexRecovererreplaceIndex - method that should be executed before the index has been closed and before the index has been reopenedpublic void reindex()
IndexRecovererreindex in interface IndexRecovererpublic void setLuceneConnection(@NonNull com.atlassian.bonnie.ILuceneConnection luceneConnection)
public void setFullReindexManager(@NonNull FullReindexManager fullReindexManager)
Copyright © 2003–2022 Atlassian. All rights reserved.