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,
ArchivingDao archivingDao,
IssueManager issueManager,
SearcherCache searcherCache,
TimeTrackingConfiguration timeTrackingConfiguration,
IndexingLanguageSetting indexingLanguageSetting,
ReindexingAuditHandler reindexingAuditHandler,
ArchivingLicenseCheck archivingLicenseCheck,
FeatureManager featureManager)
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, getEntitySearcher, getExistingPluginsPaths, getIssueSearcher, getLatestIndexDate, getPluginsRootPath, getWorklogSearcher, isEmpty, isIndexAvailable, isIndexConsistent, reIndex, reIndex, reIndexAll, reIndexAll, reIndexAll, reIndexAll, reIndexAll, reIndexAll, reIndexAllIssuesInBackground, reIndexComments, reIndexComments, reIndexComments, reIndexIssueObjects, reIndexIssueObjects, reIndexIssueObjects, reIndexIssueObjects, reIndexIssues, reIndexIssues, reIndexIssues, reIndexIssues, reIndexIssues, reindexIssuesBatchMode, reIndexIssuesInBackground, reIndexWorklogs, reIndexWorklogs, reIndexWorklogs, shutdown, size, unconditionallyReindexIssuesAndRelatedEntitiesLocally, withReindexLock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
deIndex, deIndexIssueObjects
public BulkOnlyIndexManager(IndexingConfiguration properties, IssueIndexer issueIndexer, IndexPathManager indexPathManager, ReindexMessageManager reindexMessageManager, com.atlassian.event.api.EventPublisher eventPublisher, ListenerManager listenerManager, ProjectManager projectManager, TaskManager taskManager, OfBizDelegator ofBizDelegator, ArchivingDao archivingDao, IssueManager issueManager, SearcherCache searcherCache, TimeTrackingConfiguration timeTrackingConfiguration, IndexingLanguageSetting indexingLanguageSetting, ReindexingAuditHandler reindexingAuditHandler, ArchivingLicenseCheck archivingLicenseCheck, FeatureManager featureManager)
public void deIndex(WithId issueId) throws IndexException
IssueIndexingService
deIndex
in interface IssueIndexingService
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-2024 Atlassian. All Rights Reserved.