Method | Description | |
---|---|---|
AddFinger ( |
Adds a new finger and sets its state. Note, only fingers for which we received a update will be used for routing.
|
|
AddLeavingNode ( |
||
AddNode ( |
||
AttachFingers ( ) : List |
JP also needs to populate its finger table (for the Chord based DHT). It issues an Attach to a variety of locations around the overlay. see RELOAD base -17 p.129
|
|
AttachToAllNeighbors ( ) : void |
Attach to all members of the successor and predecessor table
|
|
Conn2Route ( ) : void |
This method should only be executed after enrichment of the connection table while joining. It transfers all connection obtain yet to the routing table. see base -18 p.106 4. JP MUST enter all the peers it has contacted into its routing table.
|
|
FindNextHopTo ( |
||
GetApproved ( List |
||
GetApprovedPredecessor ( ) : |
||
GetApprovedSuccessor ( ) : |
||
GetCandidates ( |
Returns the ice candidates stored in a dicationary along with a nodeid
|
|
GetNode ( |
||
GetNodeState ( |
We need the information if a node (nodeid) has already been attached to and is valid. This is stored in the routing table
|
|
GetPing ( |
||
GetPredecessor ( int index ) : |
||
GetPredecessorCount ( bool only_approved ) : int | ||
GetPredecessorId ( int index ) : |
||
GetStatusShortLetter ( |
||
GetSuccessor ( int index ) : |
||
GetSuccessorCount ( bool only_approved ) : int | ||
GetSuccessorId ( int index ) : |
||
GotUpdatesFrom ( |
||
IsAttached ( |
||
IsWaitForJoinAnsw ( |
||
Leave ( |
||
NeighborsFromTotal ( List |
||
NodeWeNeed ( |
||
PrintNeigborState ( ) : void | ||
Reset ( ) : void | ||
RoutingTable ( |
||
SendUpdateToAllNeighbors ( ) : void |
Sends and update to all members of the successor and predecessor table
|
|
SetFingerState ( |
||
isFinger ( |
Returns true, if the tested Finger is needed for fingertable
|
|
isFinger ( |
Returns true if attaching Node should be added to finger table.
|
|
isNewNeighbour ( |
||
removeDuplicates ( List |
Removes duplicates in any list of node id's
|
|
rmDuplicateFingers ( List |
Method | Description | |
---|---|---|
GetClosestPrecedingFinger ( |
||
GetClosestPrecedingNode ( |
||
IsAttachedToAllNeighbors ( ) : bool | ||
IsChangedList ( List |
||
Merge ( |
If any peer sends an update we merge this information with our local tables
|
|
SetNodeState ( |
||
SetPinging ( |
||
SetWaitForJoinAnsw ( |
public AddFinger ( |
||
testFinger | The remote finger | |
state | NodeState | Normally, attached because update has no Node /// |
return | void |
public AddLeavingNode ( |
||
OriginatorId | ||
return | void |
public FindNextHopTo ( |
||
TargetId | ||
fIncluding | bool | |
fExludeMe | bool | |
return |
public GetApprovedPredecessor ( ) : |
||
return |
public GetApprovedSuccessor ( ) : |
||
return |
public GetCandidates ( |
||
nodeid | The Node Id | |
return | List |
public GetNode ( |
||
node_id | ||
return |
public GetNodeState ( |
||
nodeid | The Node Id | |
return | NodeState |
public GetPing ( |
||
nodeid | ||
return | bool |
public GetPredecessorCount ( bool only_approved ) : int | ||
only_approved | bool | |
return | int |
public GetPredecessorId ( int index ) : |
||
index | int | |
return |
public GetStatusShortLetter ( |
||
nodeid | ||
return | char |
public GetSuccessorCount ( bool only_approved ) : int | ||
only_approved | bool | |
return | int |
public GetSuccessorId ( int index ) : |
||
index | int | |
return |
public GotUpdatesFrom ( |
||
nodeid | ||
return | bool |
public IsAttached ( |
||
nodeid | ||
return | bool |
public IsWaitForJoinAnsw ( |
||
nodeid | ||
return | bool |
public Leave ( |
||
nodeId | ||
return | bool |
public NeighborsFromTotal ( List |
||
total_update_list | List |
|
fSuccessors | bool | |
return | List |
public NodeWeNeed ( |
||
nodeId | ||
return | bool |
public RoutingTable ( |
||
local_node | ||
machine | Machine | |
return | System |
public SetFingerState ( |
||
finger | ||
state | NodeState | |
return | void |
public isFinger ( |
||
testFinger | ||
return | bool |
public isFinger ( |
||
testFinger | The attaching node | |
finger | FTableEntry | The first Finger Table entry machting the attaching node. |
return | bool |
public isNewNeighbour ( |
||
attacher | ||
return | bool |
public removeDuplicates ( List |
||
inputList | List |
A list containing node id's |
return | List |
public rmDuplicateFingers ( List |
||
fingers | List |
|
return | List |