public interface IndexRecoveryService
Modifier and Type | Method and Description |
---|---|
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 isIndexRecoveryRequired(JournalIdentifier journalId, String indexDirName)
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)
journalId
- the index to recoverindexDirName
- the name of the subdirectory containing the Lucene indexCopyright © 2003–2015 Atlassian. All rights reserved.