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,
ArchivedStatistics archivedStatistics,
IssueManager issueManager,
SearcherCache searcherCache,
TimeTrackingConfiguration timeTrackingConfiguration,
IndexingLanguageSetting indexingLanguageSetting,
ReindexingAuditHandler reindexingAuditHandler)
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(WithId issueId)
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, conditionalUpdateWithVersion, conditionalUpdateWithVersion, deactivate, deIndex, deIndexComments, deIndexIssueObjectsById, deIndexWorklogs, 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, reIndexIssues, reIndexIssuesInBackground, reIndexWorklogs, reIndexWorklogs, reIndexWorklogs, shutdown, size, withReindexLockclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeIndex, deIndexIssueObjectspublic 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, ArchivedStatistics archivedStatistics, IssueManager issueManager, SearcherCache searcherCache, TimeTrackingConfiguration timeTrackingConfiguration, IndexingLanguageSetting indexingLanguageSetting, ReindexingAuditHandler reindexingAuditHandler)
public void deIndex(WithId issueId) throws IndexException
IssueIndexingServicedeIndex in interface IssueIndexingServicedeIndex in class DefaultIndexManagerIndexExceptionpublic void deIndex(org.ofbiz.core.entity.GenericValue entity)
throws IndexException
IssueIndexManagerdeIndex in interface IssueIndexManagerdeIndex in class DefaultIndexManagerIndexExceptionpublic void reIndex(org.ofbiz.core.entity.GenericValue entity)
throws IndexException
IssueIndexManagerreIndex in interface IssueIndexManagerreIndex in class DefaultIndexManagerIndexExceptionpublic void reIndex(Issue entity) throws IndexException
IssueIndexManagerreIndex in interface IssueIndexingServicereIndex in interface IssueIndexManagerreIndex in class DefaultIndexManagerIndexExceptionpublic long reIndexAll()
throws IndexException
IssueIndexManagerreIndexAll in interface IssueIndexingServicereIndexAll in interface IssueIndexManagerreIndexAll in class DefaultIndexManagerIndexExceptionpublic long reIndexAll(com.atlassian.johnson.event.Event event)
throws IndexException
IndexExceptionpublic long reIndexIssueObjects(Collection<? extends Issue> issueObjects) throws IndexException
IssueIndexManagerreIndexIssueObjects in interface IssueIndexingServicereIndexIssueObjects in interface IssueIndexManagerreIndexIssueObjects in class DefaultIndexManagerissueObjects - Set of Issues to reindex.IndexExceptionpublic long reIndexIssues(IssuesIterable issuesIterable, com.atlassian.johnson.event.Event event) throws IndexException
IndexExceptionpublic long reIndexIssues(Collection<org.ofbiz.core.entity.GenericValue> issues) throws IndexException
IssueIndexManagerIssueIndexManager.reIndexIssueObjects(Collection) instead when possible.reIndexIssues in interface IssueIndexManagerreIndexIssues in class DefaultIndexManagerissues - The Issue GenericValues to reindex.IndexExceptionpublic void hold()
IssueIndexManagerhold in interface IssueIndexManagerhold in class DefaultIndexManagerpublic boolean isHeld()
IssueIndexManagerisHeld in interface IssueIndexManagerisHeld in class DefaultIndexManagerpublic long release()
throws IndexException
IssueIndexManagerrelease in interface IssueIndexManagerrelease in class DefaultIndexManagerIndexException - if an error occurspublic long optimize()
IndexLifecycleManageroptimize in interface IndexLifecycleManageroptimize in class DefaultIndexManagerpublic String toString()
toString in class DefaultIndexManagerCopyright © 2002-2020 Atlassian. All Rights Reserved.