Current section

Files

Jump to
cloudi_service_map_reduce doc cloudi_task_size.html
Raw

doc/cloudi_task_size.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 cloudi_task_size</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 cloudi_task_size</h1>
<ul class="index"><li><a href="#description">Description</a></li><li><a href="#types">Data Types</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>
<h3><a name="CloudI_Task_Size_Calculation">CloudI Task Size Calculation</a></h3>.
<p>Copyright © 2009-2015 Michael Truog</p>
<p><b>Version:</b> 1.4.1 Jan 10 2017 20:30:02
------------------------------------------------------------------------</p>
<p><b>Authors:</b> Michael Truog (<a href="mailto:mjtruog [at] gmail (dot) com"><tt>mjtruog [at] gmail (dot) com</tt></a>).</p>
<h2><a name="description">Description</a></h2>
<h3><a name="CloudI_Task_Size_Calculation">CloudI Task Size Calculation</a></h3>
<h2><a name="types">Data Types</a></h2>
<h3 class="typedecl"><a name="type-dict_proxy">dict_proxy()</a></h3>
<p><tt>dict_proxy(Key, Value) = <a href="dict.html#type-dict">dict:dict</a>(Key, Value)</tt></p>
<h3 class="typedecl"><a name="type-state">state()</a></h3>
<p><tt>state() = #cloudi_task_size{task_count = pos_integer(), task_size_initial = integer(), task_size_min = integer(), task_size_max = integer(), target_time = float(), target_time_min = float(), target_time_max = float(), target_time_incr = integer(), target_time_decr = integer(), lookup = <a href="#type-dict_proxy">dict_proxy</a>(node(), #node{task_size = number()})}</tt></p>
<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="#get-2">get/2</a></td><td>
<h4><a name="Get_the_task_size_information.">Get the task size information.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#new-7">new/7</a></td><td>
<h4><a name="Get_a_new_task_size_lookup.">Get a new task size lookup.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#put-4">put/4</a></td><td>
<h4><a name="Store_task_size_information.">Store task size information.</a></h4>
ElapsedTime is in hours.</td></tr>
<tr><td valign="top"><a href="#reduce-3">reduce/3</a></td><td>
<h4><a name="Reduce_the_task_size_after_a_timeout.">Reduce the task size after a timeout.</a></h4>.</td></tr>
</table>
<h2><a name="functions">Function Details</a></h2>
<h3 class="function"><a name="get-2">get/2</a></h3>
<div class="spec">
<p><tt>get(Pid::pid(), State::<a href="#type-state">state()</a>) -&gt; {TaskSize::integer(), Timeout::<a href="deps/cloudi_core/doc/cloudi_service.html#type-timeout_value_milliseconds">cloudi_service:timeout_value_milliseconds()</a>}</tt><br></p>
</div><p>
<h4><a name="Get_the_task_size_information.">Get the task size information.</a></h4>
</p>
<h3 class="function"><a name="new-7">new/7</a></h3>
<div class="spec">
<p><tt>new(TaskCount::pos_integer(), TaskSizeInitial::integer(), TaskSizeMin::integer(), TaskSizeMax::integer(), TargetTimeInitial::float(), TargetTimeMin::float(), TargetTimeMax::float()) -&gt; <a href="#type-state">state()</a></tt><br></p>
</div><p>
<h4><a name="Get_a_new_task_size_lookup.">Get a new task size lookup.</a></h4>
</p>
<h3 class="function"><a name="put-4">put/4</a></h3>
<div class="spec">
<p><tt>put(Pid::pid(), TaskSize::integer(), ElapsedTime::float(), State::<a href="#type-state">state()</a>) -&gt; <a href="#type-state">state()</a></tt><br></p>
</div><p>
<h4><a name="Store_task_size_information.">Store task size information.</a></h4>
ElapsedTime is in hours.</p>
<h3 class="function"><a name="reduce-3">reduce/3</a></h3>
<div class="spec">
<p><tt>reduce(Pid::pid(), Multiplier::float(), State::<a href="#type-state">state()</a>) -&gt; <a href="#type-state">state()</a></tt><br></p>
</div><p>
<h4><a name="Reduce_the_task_size_after_a_timeout.">Reduce the task size after a timeout.</a></h4>
</p>
<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, Jan 10 2017, 20:30:02.</i></p>
</body>
</html>