|
||||||||||
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 com.atlassian.jira.issue.index.BulkOnlyIndexManager
public class BulkOnlyIndexManager
This index manager ignores calls to reIndex(org.ofbiz.core.entity.GenericValue)
,
deIndex(org.ofbiz.core.entity.GenericValue)
and
reIndexIssues(Collection)
.
It should only be used where the indexer will manually call reIndexAll()
!
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 | |
---|---|
BulkOnlyIndexManager()
public default ctor for pico |
|
BulkOnlyIndexManager(ApplicationProperties applicationProperties,
IssueIndexer issueIndexer)
private only for testing purposes (use the factory method to get an instance) |
Method Summary | |
---|---|
void |
deIndex(org.ofbiz.core.entity.GenericValue entity)
Remove an issue from the search index. |
long |
optimize()
Optimize the underlying indexes. |
void |
reIndex(org.ofbiz.core.entity.GenericValue entity)
Reindex an issue (eg. |
void |
reIndex(Issue entity)
Reindex an issue (eg. |
long |
reIndexAll()
Reindex all issues. |
long |
reIndexAll(com.atlassian.johnson.event.Event event)
Reindex all issues. |
long |
reIndexIssueObjects(Collection issueObjects)
Reindex a set of issues. |
long |
reIndexIssues(Collection issues)
Reindex a set of issues (GenericValues). |
long |
reIndexIssues(IssuesIterable issuesIterable,
com.atlassian.johnson.event.Event event)
Reindex a list of issues, passing an optional event that will be set progress |
Methods inherited from class com.atlassian.jira.issue.index.DefaultIndexManager |
---|
activate, deactivate, deactivate, getAllIndexPaths, getCommentSearcher, getExistingPluginsPaths, getFilePath, getIssueSearcher, getPluginsRootPath, isIndexingEnabled, shutdown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BulkOnlyIndexManager()
public BulkOnlyIndexManager(ApplicationProperties applicationProperties, IssueIndexer issueIndexer)
Method Detail |
---|
public void deIndex(org.ofbiz.core.entity.GenericValue entity) throws IndexException
IssueIndexManager
deIndex
in interface IssueIndexManager
deIndex
in class DefaultIndexManager
IndexException
public void reIndex(org.ofbiz.core.entity.GenericValue entity) throws IndexException
IssueIndexManager
reIndex
in interface IssueIndexManager
reIndex
in class DefaultIndexManager
IndexException
public void reIndex(Issue entity) throws IndexException
IssueIndexManager
reIndex
in interface IssueIndexManager
reIndex
in class DefaultIndexManager
IndexException
public long reIndexAll() throws IndexException
IssueIndexManager
reIndexAll
in interface IssueIndexManager
reIndexAll
in class DefaultIndexManager
IndexException
public long reIndexAll(com.atlassian.johnson.event.Event event) throws IndexException
IssueIndexManager
reIndexAll
in interface IssueIndexManager
reIndexAll
in class DefaultIndexManager
event
- Reindex Event
that the caller has set (see source in IndexAdminImpl.doActivate()
).
IndexException
public long reIndexIssueObjects(Collection issueObjects) throws IndexException
IssueIndexManager
reIndexIssueObjects
in interface IssueIndexManager
reIndexIssueObjects
in class DefaultIndexManager
issueObjects
- Set of Issue
s to reindex.
IndexException
public long reIndexIssues(IssuesIterable issuesIterable, com.atlassian.johnson.event.Event event) throws IndexException
IssueIndexManager
reIndexIssues
in interface IssueIndexManager
reIndexIssues
in class DefaultIndexManager
event
- Can be null, else progress will be sent to the event
IndexException
public long reIndexIssues(Collection issues) throws IndexException
IssueIndexManager
IssueIndexManager.reIndexIssueObjects(Collection)
instead when possible.
reIndexIssues
in interface IssueIndexManager
reIndexIssues
in class DefaultIndexManager
issues
- The Issue GenericValue
s to reindex.
IndexException
public long optimize() throws IndexException
IssueIndexManager
optimize
in interface IssueIndexManager
optimize
in class DefaultIndexManager
IndexException
- if the indexes are seriously in trouble
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |