public class BulkOnlyIndexManager extends DefaultIndexManager
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()
!
ANALYZER_FOR_INDEXING, ANALYZER_FOR_SEARCHING
Constructor and Description |
---|
BulkOnlyIndexManager(IndexingConfiguration properties,
IssueIndexer issueIndexer,
IndexPathManager indexPathManager,
ReindexMessageManager reindexMessageManager,
com.atlassian.event.api.EventPublisher eventPublisher,
ListenerManager listenerManager,
ProjectManager projectManager,
TaskManager taskManager,
OfBizDelegator ofBizDelegator,
ReplicatedIndexManager replicatedIndexManager,
IssueManager issueManager,
IssueSearcherFactory issueSearcherFactory,
TimeTrackingConfiguration timeTrackingConfiguration)
private only for testing purposes (use the factory method to get an instance)
|
Modifier and Type | Method and Description |
---|---|
void |
deIndex(org.ofbiz.core.entity.GenericValue entity)
Remove an issue from the search index.
|
void |
deIndex(Issue issue)
Remove an issue from the search index.
|
void |
hold()
Temporarily suspend indexing on this thread.
|
boolean |
isHeld()
Return true if the index is held.
|
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(Collection<? extends Issue> issueObjects)
Reindex a set of issues.
|
long |
reIndexIssues(Collection<org.ofbiz.core.entity.GenericValue> issues)
Reindex a set of issues (GenericValues).
|
long |
reIndexIssues(IssuesIterable issuesIterable,
com.atlassian.johnson.event.Event event) |
long |
release()
Release indexing on this thread.
|
String |
toString() |
activate, activate, closeQuietly, deactivate, deIndex, deIndexIssueObjects, flushThreadLocalSearchers, getAllIndexPaths, getAnalyzerForIndexing, getAnalyzerForSearching, getChangeHistorySearcher, getCommentSearcher, getExistingPluginsPaths, getIssueSearcher, getPluginsRootPath, getWorklogSearcher, isEmpty, isIndexAvailable, isIndexConsistent, isIndexingEnabled, reIndex, reIndex, reIndexAll, reIndexAll, reIndexAll, reIndexAll, reIndexAll, reIndexAll, reIndexAllIssuesInBackground, reIndexAllIssuesInBackground, reIndexComments, reIndexComments, reIndexComments, reIndexIssueObjects, reIndexIssueObjects, reIndexIssueObjects, reIndexIssueObjects, reIndexIssues, reIndexIssues, reIndexIssues, reIndexIssues, reIndexIssuesInBackground, reIndexWorklogs, reIndexWorklogs, reIndexWorklogs, shutdown, size, withReindexLock
public BulkOnlyIndexManager(IndexingConfiguration properties, IssueIndexer issueIndexer, IndexPathManager indexPathManager, ReindexMessageManager reindexMessageManager, com.atlassian.event.api.EventPublisher eventPublisher, ListenerManager listenerManager, ProjectManager projectManager, TaskManager taskManager, OfBizDelegator ofBizDelegator, ReplicatedIndexManager replicatedIndexManager, IssueManager issueManager, IssueSearcherFactory issueSearcherFactory, TimeTrackingConfiguration timeTrackingConfiguration)
public void deIndex(Issue issue) throws IndexException
IssueIndexManager
deIndex
in interface IssueIndexingService
deIndex
in interface IssueIndexManager
deIndex
in class DefaultIndexManager
IndexException
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 IssueIndexingService
reIndex
in interface IssueIndexManager
reIndex
in class DefaultIndexManager
IndexException
public long reIndexAll() throws IndexException
IssueIndexManager
reIndexAll
in interface IssueIndexingService
reIndexAll
in interface IssueIndexManager
reIndexAll
in class DefaultIndexManager
IndexException
public long reIndexAll(com.atlassian.johnson.event.Event event) throws IndexException
IndexException
public long reIndexIssueObjects(Collection<? extends Issue> issueObjects) throws IndexException
IssueIndexManager
reIndexIssueObjects
in interface IssueIndexingService
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(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 void hold()
IssueIndexManager
hold
in interface IssueIndexManager
hold
in class DefaultIndexManager
public boolean isHeld()
IssueIndexManager
isHeld
in interface IssueIndexManager
isHeld
in class DefaultIndexManager
public long release() throws IndexException
IssueIndexManager
release
in interface IssueIndexManager
release
in class DefaultIndexManager
IndexException
- if an error occurspublic long optimize()
IndexLifecycleManager
optimize
in interface IndexLifecycleManager
optimize
in class DefaultIndexManager
public String toString()
toString
in class DefaultIndexManager
Copyright © 2002-2018 Atlassian. All Rights Reserved.