|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.networkdb.kademlia.PeerSelector
class PeerSelector
Mostly unused, see overrides in FloodfillPeerSelector
Field Summary | |
---|---|
protected RouterContext |
_context
|
protected Log |
_log
|
Constructor Summary | |
---|---|
PeerSelector(RouterContext ctx)
|
Method Summary | |
---|---|
(package private) List<Hash> |
selectMostReliablePeers(Hash key,
int numClosest,
Set<Hash> alreadyChecked,
KBucketSet kbuckets)
UNUSED - See FloodfillPeerSelector override Search through the kbucket set to find the most reliable peers close to the given key, skipping all of the ones already checked List will not include our own hash. |
(package private) List<Hash> |
selectNearest(Hash key,
int maxNumRouters,
Set<Hash> peersToIgnore,
KBucketSet kbuckets)
UNUSED - See FloodfillPeerSelector override Generic KBucket filtering to find the hashes close to a key, regardless of other considerations. |
(package private) List<Hash> |
selectNearestExplicit(Hash key,
int maxNumRouters,
Set<Hash> peersToIgnore,
KBucketSet kbuckets)
Ignore KBucket ordering and do the XOR explicitly per key. |
(package private) List<Hash> |
selectNearestExplicitThin(Hash key,
int maxNumRouters,
Set<Hash> peersToIgnore,
KBucketSet kbuckets)
UNUSED - See FloodfillPeerSelector override Ignore KBucket ordering and do the XOR explicitly per key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Log _log
protected RouterContext _context
Constructor Detail |
---|
public PeerSelector(RouterContext ctx)
Method Detail |
---|
List<Hash> selectMostReliablePeers(Hash key, int numClosest, Set<Hash> alreadyChecked, KBucketSet kbuckets)
List<Hash> selectNearestExplicit(Hash key, int maxNumRouters, Set<Hash> peersToIgnore, KBucketSet kbuckets)
List<Hash> selectNearestExplicitThin(Hash key, int maxNumRouters, Set<Hash> peersToIgnore, KBucketSet kbuckets)
List<Hash> selectNearest(Hash key, int maxNumRouters, Set<Hash> peersToIgnore, KBucketSet kbuckets)
key
- the original key (NOT the routing key)peersToIgnore
- can be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |