Copyright © 2007-2015 Zuse Institute Berlin
Version: $Id$
Behaviours: supervisor.
Authors: Thorsten Schuett (schuett@zib.de).
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.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 |
start_link(DHTNodeGroup :: pid_groups:groupname(), Options :: [tuple()]) -> {ok, Pid :: pid()} | ignore | {error, Error :: {already_started, Pid :: pid()} | shutdown | term()}
init(X :: [{pid_groups:groupname(), Options :: [tuple()]}]) -> {ok, {{one_for_all, MaxRetries :: pos_integer(), PeriodInSeconds :: pos_integer()}, [ProcessDescr :: supervisor:child_spec()]}}
supspec(X1 :: any()) -> {ok, {{one_for_all, MaxRetries :: pos_integer(), PeriodInSeconds :: pos_integer()}, []}}
childs(X1 :: [{pid_groups:groupname(), Options :: [tuple()]}]) -> [ProcessDescr :: supervisor:child_spec()]
check_config() -> boolean()
Checks whether config parameters for the sup_dht_node_core supervisor exist and are valid.
Generated by EDoc, Aug 2 2016, 13:42:10.