Свойство | Type | Description | |
---|---|---|---|
RETRY_TIMEOUT | int |
Свойство | Type | Description | |
---|---|---|---|
_dht | IDht | ||
_entries | Dictionary |
||
_rpc | RpcManager | ||
_sync | object |
Méthode | Description | |
---|---|---|
EntryCallback ( object o ) : void |
If half of ttl time passed, this event handler is called. AlarmEventHandler calls "DhtClient.Put" command to insert the entry to other nodes. It restarts the timer. If error occurs during ASyncPut, it retries after 30 seconds
|
|
HandleRpc ( ISender caller, string method, IList arguments, object request_state ) : void | ||
ListEntries ( ) : object |
Returns all stored values in a list.
|
|
Register ( MemBlock key, MemBlock value, int ttl ) : bool |
This is a RpcDhtProxy rpc call entry, which can be called using "RpcDhtProxy.Register" Register the entry to Entry. If the key,value pair does not exist in _entries, it creates the pair in the list. Otherwise, it updates the ttl. After inserting the entry, this module try to register the key, value pair to neighbor node.
|
|
RpcDhtProxy ( IDht dht, |
Initiates a RpcProxyHandler instance. It uses reflection for rpc call. Thus, it does not have to inherit IRpcHanler.This instance keeps Entry to keep track of key, value, and ttl
|
|
Unregister ( MemBlock key, MemBlock value ) : bool |
Unregister the proxy entry. Removes the entry from Dictionary and set the stop the timer to disable future reference
|
public EntryCallback ( object o ) : void | ||
o | object | Entry which initiates ttl time expire event |
Résultat | void |
public HandleRpc ( ISender caller, string method, IList arguments, object request_state ) : void | ||
caller | ISender | |
method | string | |
arguments | IList | |
request_state | object | |
Résultat | void |
public Register ( MemBlock key, MemBlock value, int ttl ) : bool | ||
key | MemBlock | dht entry key to insert |
value | MemBlock | dht entry value to insert |
ttl | int | dht entry ttl to insert |
Résultat | bool |
public RpcDhtProxy ( IDht dht, |
||
dht | IDht | IDht instance |
node | node which is currently connected. | |
Résultat | System |
public Unregister ( MemBlock key, MemBlock value ) : bool | ||
key | MemBlock | |
value | MemBlock | |
Résultat | bool |