|
|||||||||
| Home >> All >> com >> fetish >> [ directory overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.fetish.directory
Class SearchSet

java.lang.Objectcom.fetish.directory.SearchSet
- All Implemented Interfaces:
- java.io.Serializable
- public class SearchSet
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
Set of started searches. This class is stored in a FADA node to keep track of all searches started from this node.
| Nested Class Summary | |
private class |
SearchSet.Ager
|
| Field Summary | |
private java.lang.Thread |
ager
|
private java.util.Map |
content
Currently running searches indexed by the SearchID |
private static long |
delayTime
|
private java.lang.Object |
lock
|
private long |
numSearches
Counter used to construct the id's of the searches |
private ServiceID |
sid
|
private SearchIDFactory |
sidfactory
|
| Constructor Summary | |
SearchSet(ServiceID sid)
|
|
| Method Summary | |
void |
addResult(SearchIDInterface id,
ServiceMatches sm)
Add a result to the search identified by id |
void |
addResult(ServiceID sid,
SearchIDInterface searchID,
ServiceMatches sm)
|
void |
finishedSearch(SearchIDInterface sid)
|
ServiceMatches |
getResults(SearchIDInterface id)
Wait for the search process specified to be finished and the return the results. |
SearchIDInterface |
newSearch(int maxResponses)
|
void |
startedSearches(SearchIDInterface sid,
int started)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
delayTime
private static long delayTime
numSearches
private long numSearches
- Counter used to construct the id's of the searches
sid
private ServiceID sid
sidfactory
private SearchIDFactory sidfactory
content
private java.util.Map content
- Currently running searches indexed by the SearchID
ager
private java.lang.Thread ager
lock
private java.lang.Object lock
| Constructor Detail |
SearchSet
public SearchSet(ServiceID sid)
| Method Detail |
newSearch
public SearchIDInterface newSearch(int maxResponses)
startedSearches
public void startedSearches(SearchIDInterface sid, int started)
addResult
public void addResult(SearchIDInterface id, ServiceMatches sm)
- Add a result to the search identified by id
addResult
public void addResult(ServiceID sid,
SearchIDInterface searchID,
ServiceMatches sm)
finishedSearch
public void finishedSearch(SearchIDInterface sid)
getResults
public ServiceMatches getResults(SearchIDInterface id)
- Wait for the search process specified to be finished and the return the
results. The search will not exceed the time specified by
Search.MAX_WAIT_TIME
|
|||||||||
| Home >> All >> com >> fetish >> [ directory overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.fetish.directory.SearchSet