org.jenkinsci.plugins.lucene.search.databackend
Class SearchBackend

java.lang.Object
  extended by org.jenkinsci.plugins.lucene.search.databackend.SearchBackend
Direct Known Subclasses:
LuceneSearchBackend, SolrSearchBackend

public abstract class SearchBackend
extends Object


Constructor Summary
SearchBackend(SearchBackendEngine engine)
           
 
Method Summary
abstract  void cleanDeletedBuilds(Progress progress, hudson.model.Job<?,?> job)
           
abstract  void cleanDeletedJobs(Progress progress)
           
abstract  void deleteJob(String jobName)
           
protected  String[] getAllDefaultSearchableFields()
           
protected  String[] getAllFields()
           
 SearchBackendEngine getEngine()
           
abstract  List<FreeTextSearchItemImplementation> getHits(String query, boolean includeHighlights)
           
 void rebuildDatabase(ManagerProgress progress)
           
 void rebuildJob(Progress progress, hudson.model.Job<?,?> job)
           
abstract  SearchBackend reconfigure(Map<String,Object> config)
           
abstract  void removeBuild(hudson.model.AbstractBuild<?,?> build)
           
abstract  void storeBuild(hudson.model.AbstractBuild<?,?> build)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchBackend

public SearchBackend(SearchBackendEngine engine)
Method Detail

storeBuild

public abstract void storeBuild(hudson.model.AbstractBuild<?,?> build)
                         throws IOException
Throws:
IOException

getHits

public abstract List<FreeTextSearchItemImplementation> getHits(String query,
                                                               boolean includeHighlights)

getEngine

public final SearchBackendEngine getEngine()

reconfigure

public abstract SearchBackend reconfigure(Map<String,Object> config)

removeBuild

public abstract void removeBuild(hudson.model.AbstractBuild<?,?> build)

cleanDeletedBuilds

public abstract void cleanDeletedBuilds(Progress progress,
                                        hudson.model.Job<?,?> job)

cleanDeletedJobs

public abstract void cleanDeletedJobs(Progress progress)

deleteJob

public abstract void deleteJob(String jobName)

rebuildJob

public void rebuildJob(Progress progress,
                       hudson.model.Job<?,?> job)
                throws IOException
Throws:
IOException

rebuildDatabase

public void rebuildDatabase(ManagerProgress progress)

getAllDefaultSearchableFields

protected String[] getAllDefaultSearchableFields()

getAllFields

protected String[] getAllFields()


Copyright © 2004-2015. All Rights Reserved.