public class VersionIndexerImpl extends AbstractIndexer implements VersionIndexer
AbstractIndexer.FlushAndUnlockIndexerQueueCallback, AbstractIndexer.IndexAllCallable, AbstractIndexer.UpdateApproximateIndexingTimePerResultCallback
indexerService, luceneConnection
Constructor and Description |
---|
VersionIndexerImpl(com.atlassian.bonnie.ILuceneConnection luceneConnection,
com.atlassian.bandana.BandanaManager bandanaManager,
com.atlassian.config.db.HibernateConfig hibernateConfig,
IndexerService indexerService,
com.atlassian.event.api.EventPublisher eventPublisher,
DeploymentProjectService deploymentProjectService,
DeploymentVersionService deploymentVersionService,
DeploymentVersionLinkedJiraIssuesService deploymentVersionLinkedJiraIssuesService) |
Modifier and Type | Method and Description |
---|---|
void |
deindexDeploymentVersion(DeploymentVersionDeletedEvent event) |
void |
deindexDeploymentVersionForProject(DeploymentProjectDeletedEvent event) |
long |
getEstimatedReindexTime()
How long will it take to reindex all objects in this index.
|
protected BambooBandanaContext |
getIndexerBandanaContext() |
void |
indexAll(Executor executor)
Version reindex splits workload creating tasks for every deployment project
|
void |
indexDeploymentVersion(DeploymentVersionCreatedEvent event) |
void |
indexDeploymentVersion(DeploymentVersionRenamedEvent event) |
deleteIndex, flushAndUnlockIndexerQueue, getApproximateIndexingTimePerResult, getConcurrentIndexers, getDefaultIndexerContext, getNumberOfDocuments, lockIndexerQueue, updateApproximateIndexingTimePerResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteIndex, getNumberOfDocuments
public VersionIndexerImpl(com.atlassian.bonnie.ILuceneConnection luceneConnection, com.atlassian.bandana.BandanaManager bandanaManager, com.atlassian.config.db.HibernateConfig hibernateConfig, IndexerService indexerService, com.atlassian.event.api.EventPublisher eventPublisher, DeploymentProjectService deploymentProjectService, DeploymentVersionService deploymentVersionService, DeploymentVersionLinkedJiraIssuesService deploymentVersionLinkedJiraIssuesService)
public void indexAll(@NotNull Executor executor) throws Exception
@EventListener public void indexDeploymentVersion(DeploymentVersionCreatedEvent event)
@EventListener public void indexDeploymentVersion(DeploymentVersionRenamedEvent event)
@EventListener public void deindexDeploymentVersion(DeploymentVersionDeletedEvent event)
@EventListener public void deindexDeploymentVersionForProject(DeploymentProjectDeletedEvent event)
public long getEstimatedReindexTime()
Indexer
getEstimatedReindexTime
in interface Indexer
protected BambooBandanaContext getIndexerBandanaContext()
getIndexerBandanaContext
in class AbstractIndexer
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.