Current section
Files
Jump to
Current section
Files
doc/supervisor_cpg.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Module supervisor_cpg</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
</head>
<body bgcolor="white">
<div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
<hr>
<h1>Module supervisor_cpg</h1>
<ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>
<h3><a name="CPG_Supervisor.">CPG Supervisor.</a></h3><p>
Can provide process migration after a failure, or simply load balancing
for a supervisor. Use as an interface, not a behaviour (i.e., it is just
a supervisor you can call functions on). cpg_supervisor only provides the
one_for_one supervisor strategy to avoid complexity.</p>
Meant to provide better functionality than:
https://github.com/jbrisbin/rabbit_common/blob/master/src/mirrored_supervisor.erl
(mnesia is avoided and state is minimized).
<p>Copyright © 2013-2017 Michael Truog</p>
<p><b>Version:</b> 1.7.1 Jun 3 2020 18:15:22
------------------------------------------------------------------------</p>
<p><b>Behaviours:</b> <a href="supervisor.html"><tt>supervisor</tt></a>.</p>
<p><b>Authors:</b> Michael Truog (<a href="mailto:mjtruog at protonmail dot com"><tt>mjtruog at protonmail dot com</tt></a>).</p>
<h2><a name="description">Description</a></h2>
<h3><a name="CPG_Supervisor.">CPG Supervisor.</a></h3><p>
Can provide process migration after a failure, or simply load balancing
for a supervisor. Use as an interface, not a behaviour (i.e., it is just
a supervisor you can call functions on). cpg_supervisor only provides the
one_for_one supervisor strategy to avoid complexity.</p>
Meant to provide better functionality than:
https://github.com/jbrisbin/rabbit_common/blob/master/src/mirrored_supervisor.erl
(mnesia is avoided and state is minimized)
<h2><a name="index">Function Index</a></h2>
<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#check_childspecs-1">check_childspecs/1</a></td><td></td></tr>
<tr><td valign="top"><a href="#count_children-1">count_children/1</a></td><td></td></tr>
<tr><td valign="top"><a href="#delete_child-2">delete_child/2</a></td><td></td></tr>
<tr><td valign="top"><a href="#init-1">init/1</a></td><td></td></tr>
<tr><td valign="top"><a href="#restart_child-2">restart_child/2</a></td><td></td></tr>
<tr><td valign="top"><a href="#start_child-2">start_child/2</a></td><td></td></tr>
<tr><td valign="top"><a href="#start_link-3">start_link/3</a></td><td></td></tr>
<tr><td valign="top"><a href="#start_link-4">start_link/4</a></td><td></td></tr>
<tr><td valign="top"><a href="#start_nomad_child-4">start_nomad_child/4</a></td><td></td></tr>
<tr><td valign="top"><a href="#start_remote_child-2">start_remote_child/2</a></td><td></td></tr>
<tr><td valign="top"><a href="#terminate_child-2">terminate_child/2</a></td><td></td></tr>
<tr><td valign="top"><a href="#which_children-1">which_children/1</a></td><td></td></tr>
</table>
<h2><a name="functions">Function Details</a></h2>
<h3 class="function"><a name="check_childspecs-1">check_childspecs/1</a></h3>
<div class="spec">
<p><tt>check_childspecs(ChildSpecs) -> any()</tt></p>
</div>
<h3 class="function"><a name="count_children-1">count_children/1</a></h3>
<div class="spec">
<p><tt>count_children(Name) -> any()</tt></p>
</div>
<h3 class="function"><a name="delete_child-2">delete_child/2</a></h3>
<div class="spec">
<p><tt>delete_child(Name, Id) -> any()</tt></p>
</div>
<h3 class="function"><a name="init-1">init/1</a></h3>
<div class="spec">
<p><tt>init(X1) -> any()</tt></p>
</div>
<h3 class="function"><a name="restart_child-2">restart_child/2</a></h3>
<div class="spec">
<p><tt>restart_child(Name, Id) -> any()</tt></p>
</div>
<h3 class="function"><a name="start_child-2">start_child/2</a></h3>
<div class="spec">
<p><tt>start_child(Name, ChildSpec) -> any()</tt></p>
</div>
<h3 class="function"><a name="start_link-3">start_link/3</a></h3>
<div class="spec">
<p><tt>start_link(Name, MaxR, MaxT) -> any()</tt></p>
</div>
<h3 class="function"><a name="start_link-4">start_link/4</a></h3>
<div class="spec">
<p><tt>start_link(Name, MaxR, MaxT, ChildSpecs) -> any()</tt></p>
</div>
<h3 class="function"><a name="start_nomad_child-4">start_nomad_child/4</a></h3>
<div class="spec">
<p><tt>start_nomad_child(Name, MaxR, MaxT, ChildSpec) -> any()</tt></p>
</div>
<h3 class="function"><a name="start_remote_child-2">start_remote_child/2</a></h3>
<div class="spec">
<p><tt>start_remote_child(Name, ChildSpec) -> any()</tt></p>
</div>
<h3 class="function"><a name="terminate_child-2">terminate_child/2</a></h3>
<div class="spec">
<p><tt>terminate_child(Name, Id) -> any()</tt></p>
</div>
<h3 class="function"><a name="which_children-1">which_children/1</a></h3>
<div class="spec">
<p><tt>which_children(Name) -> any()</tt></p>
</div>
<hr>
<div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
<p><i>Generated by EDoc</i></p>
</body>
</html>