com.atlassian.bamboo.deployments.versions.index
Class VersionIndexerImpl
java.lang.Object
com.atlassian.bamboo.index.AbstractIndexer
com.atlassian.bamboo.deployments.versions.index.VersionIndexerImpl
- All Implemented Interfaces:
- VersionIndexer, Indexer, org.springframework.beans.factory.InitializingBean
public class VersionIndexerImpl
- extends AbstractIndexer
- implements VersionIndexer, org.springframework.beans.factory.InitializingBean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersionIndexerImpl
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)
indexAll
public void indexAll(@NotNull
ExecutorService executor)
throws Exception
- Version reindex splits workload creating tasks for every deployment project
- Specified by:
indexAll
in interface Indexer
- Parameters:
executor
- allows multithreaded execution of indexer
- Throws:
Exception
indexDeploymentVersion
@EventListener
public void indexDeploymentVersion(DeploymentVersionCreatedEvent event)
indexDeploymentVersion
@EventListener
public void indexDeploymentVersion(DeploymentVersionRenamedEvent event)
deindexDeploymentVersion
@EventListener
public void deindexDeploymentVersion(DeploymentVersionDeletedEvent event)
deindexDeploymentVersionForProject
@EventListener
public void deindexDeploymentVersionForProject(DeploymentProjectDeletedEvent event)
getEstimatedReindexTime
public long getEstimatedReindexTime()
- Description copied from interface:
Indexer
- How long will it take to reindex all objects in this index.
- Specified by:
getEstimatedReindexTime
in interface Indexer
- Returns:
- seconds of how long
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
getIndexerBandanaContext
protected BambooBandanaContext getIndexerBandanaContext()
- Specified by:
getIndexerBandanaContext
in class AbstractIndexer
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.