com.atlassian.bamboo.index
Class DefaultBuildResultsIndexer

java.lang.Object
  extended by com.atlassian.bamboo.index.DefaultBuildResultsIndexer
All Implemented Interfaces:
BuildResultsIndexer

public class DefaultBuildResultsIndexer
extends java.lang.Object
implements BuildResultsIndexer


Field Summary
protected  BuildManager buildManager
           
protected  LuceneConnection luceneConnection
           
protected  TestResultManager testResultManager
           
 
Constructor Summary
DefaultBuildResultsIndexer()
           
 
Method Summary
 void deIndexBuild(Build build)
           
 void deIndexBuildResults(BuildResultsSummary summary, boolean includeTests)
           
 LuceneConnection getLuceneConnection()
           
 TestResultManager getTestResultManager()
           
 long indexBuild(Build build)
          Indexes the build.
 long indexBuildResult(BuildResults buildResults, Build plan)
          Build result indexed by the build thread - need to establish session to attach back to build restuls summary.
 long optimize()
           
 long reindexAll()
          Reindexes all test results.
 void reIndexBuildResults(BuildResults result, BuildResultsSummary summary, Build plan, boolean includeTests)
           
 void setBuildManager(BuildManager buildManager)
           
 void setBuildResultsSummaryDocumentFactory(BuildResultsSummaryDocumentFactory buildResultsSummaryDocumentFactory)
           
 void setLuceneConnection(LuceneConnection luceneConnection)
           
 void setTestResultManager(TestResultManager testResultManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testResultManager

protected TestResultManager testResultManager

luceneConnection

protected LuceneConnection luceneConnection

buildManager

protected BuildManager buildManager
Constructor Detail

DefaultBuildResultsIndexer

public DefaultBuildResultsIndexer()
Method Detail

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(Build build)
                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

indexBuildResult

public long indexBuildResult(@NotNull
                             BuildResults buildResults,
                             Build plan)
                      throws java.lang.Exception
Build result indexed by the build thread - need to establish session to attach back to build restuls summary.

Specified by:
indexBuildResult in interface BuildResultsIndexer
Parameters:
buildResults -
plan -
Returns:
Throws:
java.lang.Exception

reIndexBuildResults

public void reIndexBuildResults(@NotNull
                                BuildResults result,
                                @NotNull
                                BuildResultsSummary summary,
                                Build plan,
                                boolean includeTests)
                         throws java.lang.Exception
Specified by:
reIndexBuildResults in interface BuildResultsIndexer
Throws:
java.lang.Exception

deIndexBuild

public void deIndexBuild(@NotNull
                         Build build)
                  throws java.lang.Exception
Specified by:
deIndexBuild in interface BuildResultsIndexer
Throws:
java.lang.Exception

deIndexBuildResults

public void deIndexBuildResults(BuildResultsSummary summary,
                                boolean includeTests)
Specified by:
deIndexBuildResults in interface BuildResultsIndexer

getTestResultManager

public TestResultManager getTestResultManager()

setTestResultManager

public void setTestResultManager(TestResultManager testResultManager)

getLuceneConnection

public LuceneConnection getLuceneConnection()

setLuceneConnection

public void setLuceneConnection(LuceneConnection luceneConnection)

setBuildManager

public void setBuildManager(BuildManager buildManager)

setBuildResultsSummaryDocumentFactory

public void setBuildResultsSummaryDocumentFactory(BuildResultsSummaryDocumentFactory buildResultsSummaryDocumentFactory)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.