net.firstpartners.rp.back.search
Class RpSearcher

java.lang.Object
  extended by net.firstpartners.rp.back.search.RpSearcher
All Implemented Interfaces:
IInterestedInSearch, IPlugin

public class RpSearcher
extends java.lang.Object
implements IInterestedInSearch

Searcher plugin

Author:
Firstpartners.net

Field Summary
protected  org.apache.log4j.Logger logger
          Logger for this class and subclasses
private  ISearchResult result
          Search result object
 
Constructor Summary
RpSearcher()
           
 
Method Summary
 void doSearch(ISearchQuery searchQuery, java.lang.String sortField, boolean sortDescMode, int maxDocNo)
          Search the Known Data
 ISearchResult getResults()
          Get the Search results generated by doSearch
 boolean isReady()
          Poll to see if the search has finished
 void onLoad()
          No process occur for the searcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.log4j.Logger logger
Logger for this class and subclasses


result

private ISearchResult result
Search result object

Constructor Detail

RpSearcher

public RpSearcher()
Method Detail

doSearch

public void doSearch(ISearchQuery searchQuery,
                     java.lang.String sortField,
                     boolean sortDescMode,
                     int maxDocNo)
              throws RpException
Search the Known Data

Specified by:
doSearch in interface IInterestedInSearch
Parameters:
searchQuery - Search queryy
sortField - Sort field
sortDescMode - Descendent mode = true, false - otherwise
maxDocNo - The maxim count of documents which the searcher must to deliver
Throws:
RpException - Error occur in search process

isReady

public boolean isReady()
Poll to see if the search has finished

Specified by:
isReady in interface IInterestedInSearch
Returns:
True if the basic intelligence is ready

getResults

public ISearchResult getResults()
Get the Search results generated by doSearch

Specified by:
getResults in interface IInterestedInSearch
Returns:
searchResults

onLoad

public void onLoad()
No process occur for the searcher

Specified by:
onLoad in interface IPlugin