com.atlassian.jira.issue.index
Class MemoryIndexManager

java.lang.Object
  extended by com.atlassian.jira.issue.index.DefaultIndexManager
      extended by com.atlassian.jira.issue.index.MemoryIndexManager
All Implemented Interfaces:
IssueIndexManager, Sized, IndexLifecycleManager

public class MemoryIndexManager
extends DefaultIndexManager

A based index manager to allow indexing to be done in memory rather than on the FS.

It can be used in test cases which involves the validity of data being indexed/deindexed/reindexed


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.index.IndexLifecycleManager
IndexLifecycleManager.Composite
 
Field Summary
 
Fields inherited from class com.atlassian.jira.issue.index.DefaultIndexManager
ANALYZER_FOR_INDEXING, ANALYZER_FOR_SEARCHING, COMMENTS_SUBDIR, ISSUES_SUBDIR, PLUGINS_SUBDIR
 
Constructor Summary
MemoryIndexManager()
           
MemoryIndexManager(org.apache.lucene.store.RAMDirectory issueDirectory, org.apache.lucene.store.RAMDirectory commentDirectory)
           
 
Method Summary
protected  String getFilePath()
          Return the path beneath which the different index directories are stored, protected so the MemoryIndexManager can override for testing purposes.
 
Methods inherited from class com.atlassian.jira.issue.index.DefaultIndexManager
activate, deactivate, deactivate, deIndex, getAllIndexPaths, getCommentSearcher, getExistingPluginsPaths, getIssueSearcher, getPluginsRootPath, isIndexingEnabled, optimize, reIndex, reIndex, reIndexAll, reIndexAll, reIndexIssueObjects, reIndexIssues, reIndexIssues, shutdown, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemoryIndexManager

public MemoryIndexManager()

MemoryIndexManager

public MemoryIndexManager(org.apache.lucene.store.RAMDirectory issueDirectory,
                          org.apache.lucene.store.RAMDirectory commentDirectory)
Method Detail

getFilePath

protected String getFilePath()
Description copied from class: DefaultIndexManager
Return the path beneath which the different index directories are stored, protected so the MemoryIndexManager can override for testing purposes.

Overrides:
getFilePath in class DefaultIndexManager
Returns:
string value of 'jira.path.index' application property


Copyright © 2002-2009 Atlassian. All Rights Reserved.