This commit is contained in:
zzz
2009-11-21 13:45:40 +00:00
parent 647a09b5b9
commit 6bdf750c19
4 changed files with 24 additions and 2 deletions

View File

@ -25,6 +25,8 @@ import net.i2p.util.Log;
*
* NOTE: Unused directly - see FloodOnlySearchJob extension which overrides almost everything.
* TODO: Comment out or delete what we don't use here.
*
* Note that this does NOT extend SearchJob.
*/
public class FloodSearchJob extends JobImpl {
protected Log _log;

View File

@ -258,6 +258,8 @@ public class FloodfillNetworkDatabaseFacade extends KademliaNetworkDatabaseFacad
/**
* Ok, the initial set of searches to the floodfill peers timed out, lets fall back on the
* wider kademlia-style searches
*
* Unused - called only by FloodSearchJob which is overridden - don't use this.
*/
void searchFull(Hash key, List<Job> onFind, List<Job> onFailed, long timeoutMs, boolean isLease) {
synchronized (_activeFloodQueries) { _activeFloodQueries.remove(key); }

View File

@ -827,6 +827,7 @@ public class KademliaNetworkDatabaseFacade extends NetworkDatabaseFacade {
* will fire the appropriate jobs on success or timeout (or if the kademlia search completes
* without any match)
*
* Unused - called only by FNDF.searchFull() from FloodSearchJob which is overridden - don't use this.
*/
SearchJob search(Hash key, Job onFindJob, Job onFailedLookupJob, long timeoutMs, boolean isLease) {
if (!_initialized) return null;