public interface IndexRecoveryService
Modifier and Type | Method and Description |
---|---|
boolean |
createIndexBackup(JournalIdentifier journalId,
String indexDirName,
IndexRecoverer indexRecoverer)
Creates an index snapshot in the cluster shared home.
|
boolean |
isIndexRecoveryRequired(JournalIdentifier journalId,
String indexDirName)
Checks to see whether the index needs to be recovered.
|
boolean |
recoverIndex(JournalIdentifier journalId,
String indexDirName)
Recovers the index required by asking other nodes in the cluster for a snapshot of their index
and copying it to its local home directory.
|
boolean |
recoverIndexFromSharedHome(JournalIdentifier journalId,
String indexDirName)
Recovers the index snapshot stored in the shared home.
|
boolean isIndexRecoveryRequired(JournalIdentifier journalId, String indexDirName)
This will be true if the index folder does not exist, or, if the index is copied over from a live system and is invalid, or, if the journal has been purged past where the node is currently processing, Note, this will always return false if the instance is not clustered.
journalId
- the index to check whether it needs to be recoveredindexDirName
- the name of the subdirectory containing the Lucene indexboolean recoverIndex(JournalIdentifier journalId, String indexDirName)
This will overwrite the local index files if it already exists.
journalId
- the index to recoverindexDirName
- the name of the subdirectory containing the Lucene indexboolean recoverIndexFromSharedHome(JournalIdentifier journalId, String indexDirName)
This will overwrite the local index files if it already exists.
journalId
- the index to recoverindexDirName
- the name of the subdirectory where the Lucene index will be moved toboolean createIndexBackup(JournalIdentifier journalId, String indexDirName, IndexRecoverer indexRecoverer)
This will overwrite existing snapshots of the same index in the shared home.
journalId
- the index to backupindexDirName
- the name of the subdirectory containing the Lucene indexindexRecoverer
- the index recover module that will take the lucene index snapshotCopyright © 2003–2017 Atlassian. All rights reserved.