# Module dht_node_reregister

- Description
- Data Types
- Function Index
- Function Details

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

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

## 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, Apr 22 2017, 15:58:21.