com.atlassian.bamboo.index.quicksearch
Class QuickSearchIndexerImpl

java.lang.Object
  extended by com.atlassian.bamboo.index.AbstractIndexer
      extended by com.atlassian.bamboo.index.quicksearch.QuickSearchIndexerImpl
All Implemented Interfaces:
Indexer, QuickSearchIndexer, org.springframework.beans.factory.InitializingBean

public class QuickSearchIndexerImpl
extends AbstractIndexer
implements QuickSearchIndexer, 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
QuickSearchIndexerImpl(com.atlassian.bonnie.ILuceneConnection luceneConnection, IndexerService indexerService, CachedPlanManager cachedPlanManager, DeploymentProjectService deploymentProjectService, com.atlassian.config.db.HibernateConfig hibernateConfig, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.bandana.BandanaManager bandanaManager, PlanManager planManager)
           
 
Method Summary
 void afterPropertiesSet()
           
 void deleteDeploymentProject(DeploymentProjectDeletedEvent event)
           
 long getEstimatedReindexTime()
          How long will it take to reindex all objects in this index.
protected  BambooBandanaContext getIndexerBandanaContext()
           
 void indexAll(ExecutorService executor)
          Reindexes anything this index is supposed to have in it.
 void indexDeploymentProject(DeploymentProjectConfigUpdatedEvent event)
           
 void indexDeploymentProject(DeploymentProjectCreatedEvent event)
           
 void onBuildConfigUpdatedEvent(BuildConfigurationUpdatedEvent event)
           
 void onChainCreated(ChainCreatedEvent event)
           
 void onChainDeletedEvent(ChainDeletedEvent event)
           
 void onMultipleChainDeletedEvent(MultipleChainsDeletedEvent 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

QuickSearchIndexerImpl

public QuickSearchIndexerImpl(com.atlassian.bonnie.ILuceneConnection luceneConnection,
                              IndexerService indexerService,
                              CachedPlanManager cachedPlanManager,
                              DeploymentProjectService deploymentProjectService,
                              com.atlassian.config.db.HibernateConfig hibernateConfig,
                              com.atlassian.event.api.EventPublisher eventPublisher,
                              com.atlassian.bandana.BandanaManager bandanaManager,
                              PlanManager planManager)
Method Detail

indexAll

public void indexAll(@NotNull
                     ExecutorService executor)
              throws Exception
Description copied from interface: Indexer
Reindexes anything this index is supposed to have in it. Indexers are supposed to use executor to split the job into reasonable-sized chunks.

Specified by:
indexAll in interface Indexer
Parameters:
executor - allows multithreaded execution of indexer
Throws:
Exception

onChainCreated

@EventListener
public void onChainCreated(@NotNull
                                         ChainCreatedEvent event)

onChainDeletedEvent

@EventListener
public void onChainDeletedEvent(@NotNull
                                              ChainDeletedEvent event)

onMultipleChainDeletedEvent

@EventListener
public void onMultipleChainDeletedEvent(@NotNull
                                                      MultipleChainsDeletedEvent event)

onBuildConfigUpdatedEvent

@EventListener
public void onBuildConfigUpdatedEvent(@NotNull
                                                    BuildConfigurationUpdatedEvent event)

indexDeploymentProject

@EventListener
public void indexDeploymentProject(@NotNull
                                                 DeploymentProjectCreatedEvent event)

indexDeploymentProject

@EventListener
public void indexDeploymentProject(@NotNull
                                                 DeploymentProjectConfigUpdatedEvent event)

deleteDeploymentProject

@EventListener
public void deleteDeploymentProject(@NotNull
                                                  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.