public class EdgeIndexRecoverer extends Object implements IndexRecoverer
Constructor and Description |
---|
EdgeIndexRecoverer(com.atlassian.bonnie.ILuceneConnection luceneConnection,
EdgeIndexBuilder edgeIndexBuilder) |
Modifier and Type | Method and Description |
---|---|
void |
reindex()
Trigger a reindex
|
void |
reset(Runnable replaceIndex)
Closes the reader and the writer and create new ones.
|
void |
snapshot(File destDir)
Allows taking a snapshot of the index.
|
public EdgeIndexRecoverer(@Qualifier(value="edgeLuceneConnection") com.atlassian.bonnie.ILuceneConnection luceneConnection, @Qualifier(value="edgeIndexBuilder") EdgeIndexBuilder edgeIndexBuilder)
public void snapshot(@Nonnull File destDir) throws IOException
IndexRecoverer
snapshot
in interface IndexRecoverer
destDir
- directory in which the snapshot should be savedIOException
public void reset(@Nonnull Runnable replaceIndex)
IndexRecoverer
reset
in interface IndexRecoverer
replaceIndex
- method that should be executed before the index has been closed and before the index has been reopenedpublic void reindex()
IndexRecoverer
reindex
in interface IndexRecoverer
Copyright © 2003–2015 Atlassian. All rights reserved.