|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlbg.searchengine.service.SimulatedSearchEngineHandle
public class SimulatedSearchEngineHandle
Simulated handle to the search engine.
Constructor Summary | |
---|---|
SimulatedSearchEngineHandle(SimulatedSearchEngineService service)
|
Method Summary | |
---|---|
void |
add(ExternalPeerHandle handle)
Adds a handle to this SearchEngine. |
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimulatedSearchEngineHandle(SimulatedSearchEngineService service) throws GridException
GridException
Method Detail |
---|
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
public java.lang.String toString()
toString
in class java.lang.Object
|
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.