public class DefaultBuildResultsIndexer extends AbstractIndexer implements BuildResultsIndexer
AbstractIndexer.FlushAndUnlockIndexerQueueCallback, AbstractIndexer.IndexAllCallable, AbstractIndexer.UpdateApproximateIndexingTimePerResultCallbackindexerService, luceneConnection| Constructor and Description |
|---|
DefaultBuildResultsIndexer(com.atlassian.bonnie.ILuceneConnection luceneConnection,
com.atlassian.bandana.BandanaManager bandanaManager,
com.atlassian.config.db.HibernateConfig hibernateConfig,
IndexerService indexerService,
BuildResultsSummaryDao buildResultsSummaryDao,
BuildResultsSummaryDocumentFactory buildResultsSummaryDocumentFactory,
PlanManager planManager,
com.atlassian.event.api.EventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
void |
deIndexBuild(Plan plan) |
void |
deIndexBuild(Plan build,
Set<String> affectedJiraIssuesKeys) |
void |
deIndexBuildResults(ResultsSummary summary,
boolean includeTests) |
void |
deIndexChainResults(ChainResultsSummary summary,
Set<String> affectedJiraIssuesKeys,
boolean includeTests)
Deprecated.
since 5.5
|
long |
getEstimatedReindexTime()
How long will it take to reindex all objects in this index.
|
protected BambooBandanaContext |
getIndexerBandanaContext() |
void |
indexAll(Executor executor)
Build result reindex splits workload creating tasks for every plan/job
|
long |
indexBuild(Plan plan)
Indexes the build.
|
void |
indexResultSummary(ResultsSummary summary,
ImmutablePlan plan)
Schedules indexing of result summary
|
void |
reIndexBuildResults(ResultsSummary summary,
ImmutablePlan plan,
boolean includeTests) |
void |
reIndexBuildResults(ResultsSummary summary,
ImmutablePlan plan,
Set<String> affectedJiraIssuesKeys,
boolean includeTests) |
protected void |
updateApproximateIndexingTimePerResult(long totalIndexingTime,
int entityCount) |
deleteIndex, flushAndUnlockIndexerQueue, getApproximateIndexingTimePerResult, getConcurrentIndexers, getDefaultIndexerContext, getNumberOfDocuments, lockIndexerQueueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteIndex, getNumberOfDocumentspublic DefaultBuildResultsIndexer(com.atlassian.bonnie.ILuceneConnection luceneConnection,
com.atlassian.bandana.BandanaManager bandanaManager,
com.atlassian.config.db.HibernateConfig hibernateConfig,
IndexerService indexerService,
BuildResultsSummaryDao buildResultsSummaryDao,
BuildResultsSummaryDocumentFactory buildResultsSummaryDocumentFactory,
PlanManager planManager,
com.atlassian.event.api.EventPublisher eventPublisher)
public void indexAll(@NotNull
Executor executor)
throws Exception
public long indexBuild(Plan plan) throws Exception
BuildResultsIndexerindexBuild in interface BuildResultsIndexerExceptionpublic void indexResultSummary(@NotNull
ResultsSummary summary,
@NotNull
ImmutablePlan plan)
BuildResultsIndexerindexResultSummary in interface BuildResultsIndexersummary - ResultsSummary to be indexedplan - Plan this summary belongs topublic void reIndexBuildResults(@NotNull
ResultsSummary summary,
ImmutablePlan plan,
@Nullable
Set<String> affectedJiraIssuesKeys,
boolean includeTests)
throws Exception
reIndexBuildResults in interface BuildResultsIndexerExceptionpublic void reIndexBuildResults(@NotNull
ResultsSummary summary,
ImmutablePlan plan,
boolean includeTests)
throws Exception
reIndexBuildResults in interface BuildResultsIndexerExceptionpublic void deIndexBuild(@NotNull
Plan plan)
throws Exception
deIndexBuild in interface BuildResultsIndexerExceptionpublic void deIndexBuild(@NotNull
Plan build,
@NotNull
Set<String> affectedJiraIssuesKeys)
throws Exception
deIndexBuild in interface BuildResultsIndexerExceptionpublic void deIndexBuildResults(ResultsSummary summary, boolean includeTests)
deIndexBuildResults in interface BuildResultsIndexer@Deprecated public void deIndexChainResults(@NotNull ChainResultsSummary summary, Set<String> affectedJiraIssuesKeys, boolean includeTests)
deIndexChainResults in interface BuildResultsIndexerpublic long getEstimatedReindexTime()
IndexergetEstimatedReindexTime in interface Indexerprotected BambooBandanaContext getIndexerBandanaContext()
getIndexerBandanaContext in class AbstractIndexerprotected void updateApproximateIndexingTimePerResult(long totalIndexingTime,
int entityCount)
updateApproximateIndexingTimePerResult in class AbstractIndexerCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.