Naanou.LookupService
Class BackwardsFingerTable

Manages the backwards fingers.

Fields inherited from class Naanou.LookupService.FingerTable
entries, entriesSize, fingerPowers, fingerRequestStart, forward, logName, node, nodeId, nodes, requestedFingersFrom

Constructor Summary
BackwardsFingerTable(Naanou.LookupService.Node node)
         Constructor

Properties inherited from class Naanou.LookupService.FingerTable
Addresses, Count, IsForward, Node, Stats, Util

Method Summary
void AddressNotify(Naanou.LookupService.NodeAddress address)
         Called when Node knows about a new address. Try to put it into finger table somewhere
void BuildTable()
         Builds the finger table, overriden from FingerTable
int GetClosestEntriesIndex(Naanou.Common.Hash id)
         Gets the closest index on the entries array to id=. Will fuzzy match the closest LOWER index if no exact can be found
Naanou.LookupService.NodeAddress GetReplacement(Naanou.Common.Hash id)
         Gets the node nearest to id, but not the node with that id
void RemoveNode(Naanou.LookupService.NodeAddress address)
         Remove an address from finger table, and rearrange existing

Methods inherited from class Naanou.LookupService.FingerTable
ChangeKey, Clear, Dump, FindClosest, NotifyFingers, Reset, ToString

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone

Events inherited from class Naanou.LookupService.FingerTable
FingerFillFailed, FingerKeyChange


Constructor Detail

BackwardsFingerTable

internal BackwardsFingerTable(Naanou.LookupService.Node node)

Constructor

Parameters:
node - Node to link to
Method Detail

AddressNotify

public void AddressNotify(Naanou.LookupService.NodeAddress address)

Called when Node knows about a new address. Try to put it into finger table somewhere

Parameters:
address - Address to add

BuildTable

protected void BuildTable()

Builds the finger table, overriden from FingerTable


GetClosestEntriesIndex

protected int GetClosestEntriesIndex(Naanou.Common.Hash id)

Gets the closest index on the entries array to id=. Will fuzzy match the closest LOWER index if no exact can be found

Parameters:
id - Id
Returns:
Location, or -1

GetReplacement

public Naanou.LookupService.NodeAddress GetReplacement(Naanou.Common.Hash id)

Gets the node nearest to id, but not the node with that id

Parameters:
id - Id
Returns:
Nearest node

RemoveNode

protected void RemoveNode(Naanou.LookupService.NodeAddress address)

Remove an address from finger table, and rearrange existing

Parameters:
address - Node to remove