|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.index.ha.ClusteredIndexUtils
public class ClusteredIndexUtils
Helper methods to work with LuceneIndexes on a clustered environment
Nested Class Summary | |
---|---|
static class |
ClusteredIndexUtils.IndexPath
Represents the paths in jira home where indexes are stored |
Constructor Summary | |
---|---|
ClusteredIndexUtils(IssueIndexManager issueIndexManager,
JiraHome jiraHome,
LuceneDirectoryUtils luceneDirectoryUtils)
|
Method Summary | |
---|---|
Map<ClusteredIndexUtils.IndexPath,com.atlassian.jira.index.ha.ClusteredIndexUtils.IndexPathMapping> |
buildIndexPathMappings(String sourcePath,
String destinationPath)
Builds a mapping from the source index filepath to the destination filepath - keyed by the type of index |
void |
clearIndex(String path)
This deletes all documents in all indexes (if they exist) |
void |
copyIndexes(String sourcePath,
String destinationPath)
Copies all indexes from a specified directory to another specified directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClusteredIndexUtils(IssueIndexManager issueIndexManager, JiraHome jiraHome, LuceneDirectoryUtils luceneDirectoryUtils)
Method Detail |
---|
public void copyIndexes(@Nonnull String sourcePath, @Nonnull String destinationPath)
sourcePath
- source of index filesdestinationPath
- destination of index filespublic Map<ClusteredIndexUtils.IndexPath,com.atlassian.jira.index.ha.ClusteredIndexUtils.IndexPathMapping> buildIndexPathMappings(@Nonnull String sourcePath, @Nonnull String destinationPath)
sourcePath
- the root of the source indexdestinationPath
- the root of the destination index
public void clearIndex(@Nonnull String path)
path
- the root of the index to clear
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |