# Module sup_dht_node_core

- Description
- Function Index
- Function Details

Supervisor for each DHT node that is responsible for keeping processes running that are essential to the operation of the node.

Copyright © 2007-2015 Zuse Institute Berlin

Version: $Id$

Behaviours: `supervisor`.

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

## Description

Supervisor for each DHT node that is responsible for keeping processes running that are essential to the operation of the node.

If one of the supervised processes (dht_node, msg_delay or sup_dht_node_core_tx) fails, all will be re-started! Note that the DB is needed by the dht_node (and not vice-versa) and is thus started at first.

## Function Index

check_config/0 | Checks whether config parameters for the sup_dht_node_core supervisor exist and are valid.
childs/1 |
init/1 |
start_link/2 |
supspec/1 |

## Function Details

### start_link/2

    start_link(DHTNodeGroup :: pid_groups:groupname(),
               Options :: [tuple()]) ->
                  {ok, Pid :: pid()} |
                  ignore |
                  {error,
                   Error ::
                       {already_started, Pid :: pid()} |
                       shutdown |
                       term()}

### init/1

    init(X :: [{pid_groups:groupname(), Options :: [tuple()]}]) ->
            {ok,
             {{one_for_all,
               MaxRetries :: pos_integer(),
               PeriodInSeconds :: pos_integer()},
              [ProcessDescr :: supervisor:child_spec()]}}

### supspec/1

    supspec(X1 :: any()) ->
               {ok,
                {{one_for_all,
                  MaxRetries :: pos_integer(),
                  PeriodInSeconds :: pos_integer()},
                 []}}

### childs/1

    childs(X1 :: [{pid_groups:groupname(), Options :: [tuple()]}]) ->
              [ProcessDescr :: supervisor:child_spec()]

### check_config/0

    check_config() -> boolean()

Checks whether config parameters for the sup_dht_node_core supervisor exist and are valid.

Generated by EDoc, Feb 29 2016, 16:12:16.