com.atlassian.bamboo.deployments.versions.index
Class VersionIndexerImpl

java.lang.Object
  extended by com.atlassian.bamboo.index.AbstractIndexer
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.index.AbstractIndexer
AbstractIndexer.FlushAndUnlockIndexerQueueCallback, AbstractIndexer.IndexAllCallable, AbstractIndexer.UpdateApproximateIndexingTimePerResultCallback
 
Field Summary
 
Fields inherited from class com.atlassian.bamboo.index.AbstractIndexer
indexerService, luceneConnection
 
Constructor Summary
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)
           
 
Method Summary
 void afterPropertiesSet()
           
 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(ExecutorService executor)
          Version reindex splits workload creating tasks for every deployment project
 void indexDeploymentVersion(DeploymentVersionCreatedEvent event)
           
 void indexDeploymentVersion(DeploymentVersionRenamedEvent event)
           
 
Methods inherited from class com.atlassian.bamboo.index.AbstractIndexer
deleteIndex, flushAndUnlockIndexerQueue, getApproximateIndexingTimePerResult, getConcurrentIndexers, getDefaultIndexerContext, getNumberOfDocuments, lockIndexerQueue, updateApproximateIndexingTimePerResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.index.Indexer
deleteIndex, getNumberOfDocuments
 

Constructor Detail

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)
Method Detail

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.