Module dht_node_reregister

Re-register with mgmt_server nodes.

Copyright © 2007-2015 Zuse Institute Berlin

Version: $Id$

Behaviours: gen_component.

Authors: Thorsten Schuett (schuett@zib.de).

Description

Re-register with mgmt_server nodes

Data Types

message()

message() = 
    {register_trigger} |
    {register} |
    {web_debug_info, Requestor :: comm:erl_local_pid()}

state_active()

state_active() = ok

state_inactive()

state_inactive() = inactive

Function Index

start_gen_component/5
activate/0Activates the re-register process.
deactivate/0Deactivates the re-register process.
start_link/1Starts a re-register process, registers it with the process dictionary and returns its pid for use by a supervisor.
init/1Initialises the module with an uninitialized state.
on_inactive/2
on_active/2

Function Details

start_gen_component/5

start_gen_component(Module :: module(),
                    Handler :: gen_component:handler(),
                    Args :: term(),
                    Options :: [gen_component:option()],
                    Self :: pid()) ->
                       no_return() | ok

activate/0

activate() -> ok

Activates the re-register process. If not activated, it will queue most messages without processing them.

deactivate/0

deactivate() -> ok

Deactivates the re-register process.

start_link/1

start_link(DHTNodeGroup :: pid_groups:groupname()) -> {ok, pid()}

Starts a re-register process, registers it with the process dictionary and returns its pid for use by a supervisor.

init/1

init(X1 :: []) -> state_inactive()

Initialises the module with an uninitialized state.

on_inactive/2

on_inactive(Msg :: message(), State :: state_inactive()) ->
               state_inactive()

on_active/2

on_active(X1 :: message(), State :: state_active()) ->
             state_active()


Generated by EDoc, Aug 2 2016, 13:43:26.