|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlbg.searchengine.service.LiveSearchEngineService
public class LiveSearchEngineService
Live service for the search engine
Constructor Summary | |
---|---|
protected |
LiveSearchEngineService(SearchEngineServer server)
|
Method Summary | |
---|---|
void |
add(ExternalPeerHandle handle)
Adds a handle to this SearchEngine. |
SearchEngineHandle |
createHandle()
|
SearchEngineResponse |
getHandles()
Gets all handles that this engine currently knows. |
SearchEngineResponse |
getHandles(long since)
Gets handles newer than a specified time. |
java.lang.String |
id()
Returns this engine's ID. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LiveSearchEngineService(SearchEngineServer server) throws GridException
GridException
Method Detail |
---|
public SearchEngineHandle createHandle() throws GridException
createHandle
in interface SearchEngineService
GridException
public void add(ExternalPeerHandle handle) throws GridException
SearchEngineHandle
add
in interface SearchEngineHandle
handle
- The handle to add
GridException
- If the handle is invalidpublic SearchEngineResponse getHandles() throws GridException
SearchEngineHandle
getHandles
in interface SearchEngineHandle
GridException
public SearchEngineResponse getHandles(long since) throws GridException
SearchEngineHandle
getHandles
in interface SearchEngineHandle
since
- Timestamp of the last response
GridException
public java.lang.String id()
SearchEngineHandle
id
in interface SearchEngineHandle
|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.