Copyright © 2013-2015 Zuse Institute Berlin
Version: $Id$
Behaviours: gen_component.
Authors: Nico Kruber (kruber@zib.de).
erlang_timestamp() =
{MegaSecs :: non_neg_integer(),
Secs :: 0..999999,
MicroSecs :: 0..999999}
message() =
{get_split_key,
DB :: db_dht:db(),
CurRange :: intervals:interval(),
Begin :: rt_chord:key(),
End :: rt_chord:key(),
TargetLoad :: pos_integer(),
Direction :: forward | backward,
SourcePid :: comm:erl_local_pid()} |
{get_split_key_wrapper,
SourcePid :: comm:erl_local_pid(),
DB :: db_dht:db(),
CurRange :: intervals:interval(),
{get_split_key_response,
Val :: {rt_chord:key(), TakenLoad :: non_neg_integer()}}} |
{web_debug_info, Requestor :: comm:erl_local_pid()}
state() =
[{DB :: db_dht:db(),
Range :: intervals:interval(),
Expires :: erlang_timestamp(),
Key :: get_split_key,
Val :: {rt_chord:key(), TakenLoad :: non_neg_integer()}}]
| init/1 | Initialises the module with an uninitialized state. |
| on/2 | |
| start_gen_component/5 | |
| start_link/1 | Starts a db_dht cache process, registers it with the process dictionary and returns its pid for use by a supervisor. |
start_gen_component(Module :: module(),
Handler :: gen_component:handler(),
Args :: term(),
Options :: [gen_component:option()],
Self :: pid()) ->
no_return() | ok
start_link(DHTNodeGroup :: pid_groups:groupname()) -> {ok, pid()}
Starts a db_dht cache process, registers it with the process dictionary and returns its pid for use by a supervisor.
init(X1 :: []) -> state()
Initialises the module with an uninitialized state.
Generated by EDoc, Apr 22 2017, 16:02:54.