Copyright © 2007-2014 Zuse Institute Berlin
Version: $Id$
Behaviours: gen_component.
Authors: Thorsten Schuett (schuett@zib.de).
message() = {trigger_rt}
| {periodic_rt_rebuild}
| {update_rt,
OldNeighbors :: nodelist:neighborhood(),
NewNeighbors :: nodelist:neighborhood()}
| {fd_notify,
fd:event(),
DeadPid :: comm:mypid(),
Reason :: fd:reason()}
| {web_debug_info, Requestor :: comm:erl_local_pid()}
| {dump, Pid :: comm:erl_local_pid()}
| rt_chord:custom_message()
abstract datatype: state_active()
state_inactive() =
{inactive, MessageQueue :: msg_queue:msg_queue()}
-type(state() :: state_active() | state_inactive()). userdevguide-end rt_loop:state
| activate/1 | Activates the routing table process. |
| check_config/0 | Checks whether config parameters of the rt_loop process exist and are valid. |
| deactivate/0 | Deactivates the re-register process. |
| get_neighb/1 | |
| get_rt/1 | |
| init/1 | Initialises the module with an empty state. |
| on_active/2 | Message handler when the module is fully initialized. |
| on_inactive/2 | Message handler during start up phase (will change to on_active/2 when a 'activate_rt' message is received). |
| rm_send_update/5 | Notifies the node's routing table of a changed node ID, predecessor and/or successor. |
| set_rt/2 | |
| start_link/1 | Starts the routing tabe maintenance process, registers it with the process dictionary and returns its pid for use by a supervisor. |
activate(Neighbors :: nodelist:neighborhood()) -> ok
Activates the routing table process. If not activated, it will queue most messages without processing them. Pre: dht_node must be up and running
deactivate() -> ok
Deactivates the re-register process.
start_link(DHTNodeGroup :: pid_groups:groupname()) -> {ok, pid()}
Starts the routing tabe maintenance process, registers it with the process dictionary and returns its pid for use by a supervisor.
init(X1 :: []) -> state_inactive()
Initialises the module with an empty state.
on_inactive(Msg :: message(), State :: state_inactive()) -> state_inactive()
Message handler during start up phase (will change to on_active/2 when a 'activate_rt' message is received).
on_active(Message :: message(), State :: state_active()) -> state_active() | {'$gen_component', [{post_op, Msg :: {periodic_rt_rebuild}}, ...], state_active()} | unknown_event
Message handler when the module is fully initialized.
get_neighb(State :: state_active()) -> nodelist:neighborhood()
get_rt(State :: state_active()) -> rt_chord:rt()
set_rt(State :: state_active(), RT :: rt_chord:rt()) -> NewState :: state_active()
rm_send_update(Subscriber :: pid(),
Tag :: rt_loop,
OldNeighbors :: nodelist:neighborhood(),
NewNeighbors :: nodelist:neighborhood(),
Reason :: rm_loop:reason()) ->
ok
Notifies the node's routing table of a changed node ID, predecessor and/or successor. Used to subscribe to the ring maintenance.
check_config() -> boolean()
Checks whether config parameters of the rt_loop process exist and are valid.
Generated by EDoc, Jul 23 2015, 22:07:45.