com.atlassian.bamboo.index
Class DefaultBuildResultsIndexer
java.lang.Object
com.atlassian.bamboo.index.DefaultBuildResultsIndexer
- All Implemented Interfaces:
- BuildResultsIndexer
public class DefaultBuildResultsIndexer
- extends java.lang.Object
- implements BuildResultsIndexer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
luceneConnection
protected LuceneConnection luceneConnection
planManager
protected PlanManager planManager
resultsSummaryManager
protected ResultsSummaryManager resultsSummaryManager
DefaultBuildResultsIndexer
public DefaultBuildResultsIndexer()
reindexAll
public long reindexAll()
throws java.lang.Exception
- Description copied from interface:
BuildResultsIndexer
- Reindexes all test results.
- Specified by:
reindexAll
in interface BuildResultsIndexer
- Returns:
- number of millis this index operation took
- Throws:
java.lang.Exception
optimize
public long optimize()
throws java.lang.Exception
- Specified by:
optimize
in interface BuildResultsIndexer
- Throws:
java.lang.Exception
indexBuild
public long indexBuild(Plan plan)
throws java.lang.Exception
- Description copied from interface:
BuildResultsIndexer
- Indexes the build.
- Specified by:
indexBuild
in interface BuildResultsIndexer
- Returns:
- number of millis this index operation took
- Throws:
java.lang.Exception
getConcurrentIndexes
public int getConcurrentIndexes()
indexBuildResult
public long indexBuildResult(@NotNull
ResultsSummary summary,
Plan plan)
throws java.lang.Exception
- Build result indexed by the build thread - need to establish session to attach back to results summary.
Only
ResultsSummary
s in LifeCycleState.FINISHED
are indexed
- Specified by:
indexBuildResult
in interface BuildResultsIndexer
- Parameters:
summary
- plan
-
- Returns:
- timeTakenInMilliseconds
- Throws:
java.lang.Exception
reIndexBuildResults
public void reIndexBuildResults(@NotNull
ResultsSummary summary,
Plan plan,
boolean includeTests)
throws java.lang.Exception
- Specified by:
reIndexBuildResults
in interface BuildResultsIndexer
- Throws:
java.lang.Exception
deIndexBuild
public void deIndexBuild(@NotNull
Plan plan)
throws java.lang.Exception
- Specified by:
deIndexBuild
in interface BuildResultsIndexer
- Throws:
java.lang.Exception
deIndexBuildResults
public void deIndexBuildResults(ResultsSummary summary,
boolean includeTests)
- Specified by:
deIndexBuildResults
in interface BuildResultsIndexer
getApproximateTimePerResult
public double getApproximateTimePerResult()
- Description copied from interface:
BuildResultsIndexer
- A guesstimate of how long you'd take to index an individual build result
- Specified by:
getApproximateTimePerResult
in interface BuildResultsIndexer
- Returns:
setHibernateConfig
public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
getLuceneConnection
public LuceneConnection getLuceneConnection()
setLuceneConnection
public void setLuceneConnection(LuceneConnection luceneConnection)
setBuildResultsSummaryDocumentFactory
public void setBuildResultsSummaryDocumentFactory(BuildResultsSummaryDocumentFactory buildResultsSummaryDocumentFactory)
setPlanManager
public void setPlanManager(PlanManager planManager)
setResultsSummaryManager
public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
Copyright © 2010 Atlassian. All Rights Reserved.