|
||||||||||
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()
!
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 | |
---|---|
BulkOnlyIndexManager(IndexingConfiguration properties,
IssueIndexer issueIndexer,
IndexPathManager indexPathManager,
ReindexMessageManager reindexMessageManager)
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)
|
long |
reIndexIssueObjects(java.util.Collection<? extends Issue> issueObjects)
Reindex a set of issues. |
long |
reIndexIssues(java.util.Collection<org.ofbiz.core.entity.GenericValue> issues)
Reindex a set of issues (GenericValues). |
long |
reIndexIssues(IssuesIterable issuesIterable,
com.atlassian.johnson.event.Event event)
|
java.lang.String |
toString()
|
Methods inherited from class com.atlassian.jira.issue.index.DefaultIndexManager |
---|
activate, deactivate, flushThreadLocalSearchers, getAllIndexPaths, getCommentSearcher, getExistingPluginsPaths, getIssueSearcher, getPluginsRootPath, isEmpty, isIndexingEnabled, reIndexAll, reIndexIssues, shutdown, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BulkOnlyIndexManager(IndexingConfiguration properties, IssueIndexer issueIndexer, IndexPathManager indexPathManager, ReindexMessageManager reindexMessageManager)
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
IndexException
public long reIndexIssueObjects(java.util.Collection<? extends Issue> 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
IndexException
public long reIndexIssues(java.util.Collection<org.ofbiz.core.entity.GenericValue> 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
IndexLifecycleManager
optimize
in interface IndexLifecycleManager
optimize
in class DefaultIndexManager
IndexException
- if the indexes are seriously in troublepublic java.lang.String toString()
toString
in class DefaultIndexManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |