|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlbg.searchengine.SearchEngineServer
public abstract class SearchEngineServer
Search Engine server.
| Field Summary | |
|---|---|
java.lang.String |
hostname
Search engine hostname |
java.lang.String |
id
Search engine ID |
int |
port
Search engine port |
static java.util.logging.Logger |
SELOGGER
|
int |
timeout
Search engine cache refresh timeout |
| Method Summary | |
|---|---|
boolean |
add(ExternalPeerHandle handle)
Adds a handle to this search engine. |
SearchEngineResponse |
getHandles()
|
SearchEngineResponse |
getHandles(long since)
|
protected void |
remove(ExternalPeerHandle handle)
Removes a given handle from the engine if it was known. |
protected void |
remove(java.lang.String handleID)
Removes a given handle from the engine if it was known. |
SearchEngineService |
service()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.logging.Logger SELOGGER
public final java.lang.String id
public final java.lang.String hostname
public final int port
public final int timeout
| Method Detail |
|---|
public SearchEngineService service()
public boolean add(ExternalPeerHandle handle)
throws GridException
AbstractExternalPeerHandle.isAlive() and a handle
if the same ID isn't already known.
handle - The handle to add
GridException - if the handle is invalidprotected final void remove(ExternalPeerHandle handle)
handle - The handle to removeprotected void remove(java.lang.String handleID)
handleID - The ID of the handle to remove
public SearchEngineResponse getHandles()
throws GridException
GridException
public SearchEngineResponse getHandles(long since)
throws GridException
GridExceptionpublic 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.