3 -behaviour (supervisor
).
6 -export([start_link
/0]).
8 %% supervisor callbacks
11 %-=====================================================================-
13 %-=====================================================================-
15 supervisor:start_link({local
, ?MODULE
}, ?MODULE
, []).
17 %-=====================================================================-
18 %- supervisor callbacks -
19 %-=====================================================================-
23 { one_for_one
, 10, 10 },
26 { lwes_stats
, start_link
, [] },
32 { lwes_emitter_udp_pool
,
33 { lwes_emitter_udp_pool
, start_link
, [[{id
, lwes_emitters
}]] },
37 [ lwes_emitter_udp_pool
]
39 { lwes_channel_manager
, % child spec id
40 { lwes_channel_manager
, start_link
, [] },% child function to call
41 permanent
, % always restart
42 2000, % time to wait for child stop
43 worker
, % type of child
44 [ lwes_channel_manager
] % modules used by child
47 lwes_channel_sup
, % child spec id
48 { lwes_channel_sup
, start_link
, []}, % child function to call
49 permanent
, % always restart
50 2000, % time to wait for child stop
51 supervisor
, % type of child
52 [ lwes_channel_sup
] % modules used by child
54 { lwes_esf_validator
, % child spec id
55 { lwes_esf_validator
, start_link
, [] }, % child function to call
56 permanent
, % always restart
57 2000, % time to wait for child stop
58 worker
, % type of child
59 [ lwes_esf_validator
] % modules used by child
65 %-=====================================================================-
67 %-=====================================================================-
70 %-=====================================================================-
72 %-=====================================================================-
74 -include_lib ("eunit/include/eunit.hrl").
79 {ok
, Pid
} = start_link(),
88 ?
_assertEqual (true
, true
)