Module sup_dht_node_core_tx

Supervisor for each DHT node that is responsible for keeping its transaction processes running.

Copyright © 2009-2012 Zuse Institute Berlin

Version: $Id$

Behaviours: supervisor.

Authors: Florian Schintke (schintke@zib.de).

Description

Supervisor for each DHT node that is responsible for keeping its transaction processes running.

If one of the supervised processes fails, it will be re-started!

Function Index

start_link/1
init/1
supspec/1
childs/1

Function Details

start_link/1

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

init/1

init(X1 :: [pid_groups:groupname()]) ->
        {ok,
         {{one_for_one,
           MaxRetries :: pos_integer(),
           PeriodInSeconds :: pos_integer()},
          [ProcessDescr :: supervisor:child_spec()]}}

supspec/1

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

childs/1

childs(X1 :: [pid_groups:groupname()]) ->
          [ProcessDescr :: supervisor:child_spec()]


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