Package | Description |
---|---|
net.i2p.router.networkdb.kademlia |
Class and Description |
---|
DataStore |
FloodfillNetworkDatabaseFacade |
FloodOnlySearchJob
Try sending a search to some floodfill peers, failing completely if we don't get
a match from one of those peers, with no fallback to the kademlia search
Exception (a semi-exception, since we still fail completely without fallback):
If we don't know any floodfill peers, we ask a couple of peers at random,
who will hopefully reply with some floodfill keys.
|
FloodSearchJob
Try sending a search to some floodfill peers, but if we don't get a successful
match within half the allowed lookup time, give up and start querying through
the normal (kademlia) channels.
|
KademliaNetworkDatabaseFacade
Kademlia based version of the network database
|
KBucket
Group, without inherent ordering, a set of keys a certain distance away from
a local key, using XOR as the distance metric
|
KBucketSet
In memory storage of buckets sorted by the XOR metric from the local router's
identity, with bucket N containing routers BASE^N through BASE^N+1 away, up through
2^256 bits away (since we use SHA256).
|
LocalHash
Pull the caching used only by KBucketImpl out of Hash and put it here.
|
MessageWrapper.WrappedMessage
Wrapper so that we can keep track of the key and tags
for later notification to the SKM
|
PeerSelector
Mostly unused, see overrides in FloodfillPeerSelector
|
SearchJob
Search for a particular key iteratively until we either find a value or we
run out of peers
Note that this is rarely if ever used directly, and is primary used by the ExploreJob extension.
|
SearchState
Data related to a particular search
|
SelectionCollector
Visit kbuckets, gathering matches
|
StoreJob |
StoreState |
TransientDataStore |