FloodfillPeerSelector
class PeerSelector
extends java.lang.Object
修飾子とタイプ | フィールド | 説明 |
---|---|---|
protected RouterContext |
_context |
|
protected Log |
_log |
コンストラクタ | 説明 |
---|---|
PeerSelector(RouterContext ctx) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
(package private) java.util.List<Hash> |
selectMostReliablePeers(Hash key,
int numClosest,
java.util.Set<Hash> alreadyChecked,
KBucketSet<Hash> 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) java.util.List<Hash> |
selectNearest(Hash key,
int maxNumRouters,
java.util.Set<Hash> peersToIgnore,
KBucketSet<Hash> kbuckets) |
UNUSED - See FloodfillPeerSelector override
Generic KBucket filtering to find the hashes close to a key, regardless of other considerations.
|
(package private) java.util.List<Hash> |
selectNearestExplicit(Hash key,
int maxNumRouters,
java.util.Set<Hash> peersToIgnore,
KBucketSet<Hash> kbuckets) |
Ignore KBucket ordering and do the XOR explicitly per key.
|
(package private) java.util.List<Hash> |
selectNearestExplicitThin(Hash key,
int maxNumRouters,
java.util.Set<Hash> peersToIgnore,
KBucketSet<Hash> kbuckets) |
UNUSED - See FloodfillPeerSelector override
Ignore KBucket ordering and do the XOR explicitly per key.
|
protected final Log _log
protected final RouterContext _context
public PeerSelector(RouterContext ctx)
java.util.List<Hash> selectMostReliablePeers(Hash key, int numClosest, java.util.Set<Hash> alreadyChecked, KBucketSet<Hash> kbuckets)
java.util.List<Hash> selectNearestExplicit(Hash key, int maxNumRouters, java.util.Set<Hash> peersToIgnore, KBucketSet<Hash> kbuckets)
java.util.List<Hash> selectNearestExplicitThin(Hash key, int maxNumRouters, java.util.Set<Hash> peersToIgnore, KBucketSet<Hash> kbuckets)
java.util.List<Hash> selectNearest(Hash key, int maxNumRouters, java.util.Set<Hash> peersToIgnore, KBucketSet<Hash> kbuckets)
key
- the original key (NOT the routing key)peersToIgnore
- can be null