| com.atlassian.jira.util.LuceneDirectoryUtils |
Known Indirect Subclasses
|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a directory (robustly) or throws appropriate Exception
| |||||||||||
Creates an index directory for the given path on the filesystem.
| |||||||||||
Given a
Collection of paths that represent index directories checks if there are any existing
Lucene lock files for the passed paths. | |||||||||||
Creates a directory (robustly) or throws appropriate Exception
| path | Lucene index directory path |
|---|
| IOException | if cannot create directory, write to the directory, or not a directory |
|---|
Creates an index directory for the given path on the filesystem.
| path | to the index directory. |
|---|
Directory| IOException | if there is a problem when creating the index directory for the given path. |
|---|
Given a Collection of paths that represent index directories checks if there are any existing
Lucene lock files for the passed paths. This method returns a Collection of file paths of any existing
Lucene lock files. If no lock files are found an empty collection is returned.
A common usage of this methdo would be:
Collection existingLockFilepaths = LuceneUtils.getStaleLockPaths(indexManager.getAllIndexPaths());
| indexDirectoryPaths | collection of index directory paths |
|---|

