org.openprivacy.reptile.search
Interface RemoteSearchProvider

All Superinterfaces:
SearchProvider

public interface RemoteSearchProvider
extends SearchProvider

A RemoteSearchProvider is responsible for executing a search on a remote network. This is probably a P2P network but could also support RPC style activities (XMLRPC/SOAP).

Version:
$Id: RemoteSearchProvider.java,v 1.1 2002/02/23 10:44:26 burton Exp $
Author:
Kevin A. Burton

Field Summary
 
Fields inherited from interface org.openprivacy.reptile.search.SearchProvider
STATE_NEVER_SEARCHED, STATE_SEARCH_COMPLETE, STATE_SEARCH_IN_PROGRESS
 
Method Summary
 void addSearchRecord(SearchRecord record)
          Add a found SearchResult to this RemoteSearchProvider.
 void record()
           Identical to the record() method interface in SearchProvider.
 
Methods inherited from interface org.openprivacy.reptile.search.SearchProvider
assertSearchable, destroy, getHandle, getResultCount, getSearchCompletedTime, getSearchRequest, getSearchStartTime, getState, getState, getTimeCreated, isSearchable, record, search, setResultCount, setSearchCompletedTime, setSearchRequest, setSearchStartTime, setState
 

Method Detail

addSearchRecord

public void addSearchRecord(SearchRecord record)
Add a found SearchResult to this RemoteSearchProvider. This is used to aggregate results so that they can be returned. When a RemoteSearchProvider receives a result it should call addSearchResult so that it is included in the local result set.


record

public void record()
            throws java.lang.Exception

Identical to the record() method interface in SearchProvider. The difference here is that record() may not be able to return right away and might have to pull the record from a remote peer/host if necessary.

Ideally Reptile would keep a record in a local cache so that it can return it right away but this might not always be possible.

java.lang.Exception