|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.index.DefaultIndexManager
Field Summary | |
static org.apache.lucene.analysis.Analyzer |
ANALYZER
|
static java.lang.String |
COMMENTS_SUBDIR
|
static java.lang.String |
ISSUES_SUBDIR
|
Constructor Summary | |
DefaultIndexManager()
|
|
DefaultIndexManager(ApplicationProperties applicationProperties)
|
Method Summary | |
long |
activate(java.lang.String indexPath,
com.atlassian.johnson.event.Event appEvent)
Activate indexes |
void |
deactivate()
Deactivate indexes |
void |
deIndex(org.ofbiz.core.entity.GenericValue entity)
|
org.apache.lucene.store.Directory |
getCommentDirectory()
|
java.lang.String |
getCommentPath()
The specific path of the comments index |
protected java.lang.String |
getFilePath()
Return the path beneath which the different index directories are stored |
protected org.apache.lucene.index.IndexReader |
getIndexReader(java.lang.String path)
Obtain an IndexReader |
protected org.apache.lucene.index.IndexWriter |
getIndexWriter(java.lang.String path,
boolean create)
Obtain an IndexWriter for and optionally create. |
org.apache.lucene.store.Directory |
getIssueDirectory()
|
java.lang.String |
getIssuePath()
The specific path of the issue index |
boolean |
isBusy()
|
void |
reIndex(org.ofbiz.core.entity.GenericValue entity)
|
long |
reIndexAll()
|
long |
reIndexAll(com.atlassian.johnson.event.Event event)
|
long |
reIndexIssues(java.util.Collection issues)
|
protected long |
reIndexIssues(java.util.Collection issues,
boolean recreateIndex,
com.atlassian.johnson.event.Event event)
|
protected void |
removeDirectory()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final org.apache.lucene.analysis.Analyzer ANALYZER
public static final java.lang.String COMMENTS_SUBDIR
public static final java.lang.String ISSUES_SUBDIR
Constructor Detail |
public DefaultIndexManager()
public DefaultIndexManager(ApplicationProperties applicationProperties)
Method Detail |
public boolean isBusy()
isBusy
in interface IssueIndexManager
public void deactivate() throws java.lang.Exception
IssueIndexManager
deactivate
in interface IssueIndexManager
java.lang.Exception
protected void removeDirectory()
public long activate(java.lang.String indexPath, com.atlassian.johnson.event.Event appEvent) throws java.lang.Exception
IssueIndexManager
activate
in interface IssueIndexManager
java.lang.Exception
public long reIndexAll() throws IndexException
reIndexAll
in interface IssueIndexManager
IndexException
public long reIndexAll(com.atlassian.johnson.event.Event event) throws IndexException
reIndexAll
in interface IssueIndexManager
IndexException
public long reIndexIssues(java.util.Collection issues) throws IndexException
reIndexIssues
in interface IssueIndexManager
IndexException
protected long reIndexIssues(java.util.Collection issues, boolean recreateIndex, com.atlassian.johnson.event.Event event) throws IndexException
IndexException
public void reIndex(org.ofbiz.core.entity.GenericValue entity) throws IndexException
reIndex
in interface IssueIndexManager
IndexException
public void deIndex(org.ofbiz.core.entity.GenericValue entity) throws IndexException
deIndex
in interface IssueIndexManager
IndexException
public java.lang.String getIssuePath()
getIssuePath
in interface IssueIndexManager
public java.lang.String getCommentPath()
getCommentPath
in interface IssueIndexManager
public org.apache.lucene.store.Directory getIssueDirectory()
getIssueDirectory
in interface IssueIndexManager
public org.apache.lucene.store.Directory getCommentDirectory()
getCommentDirectory
in interface IssueIndexManager
protected java.lang.String getFilePath()
protected org.apache.lucene.index.IndexReader getIndexReader(java.lang.String path) throws IndexException
IndexException
protected org.apache.lucene.index.IndexWriter getIndexWriter(java.lang.String path, boolean create) throws IndexException
IndexException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |