1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml">
7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9 <title>nepi.execution package — NEPI 3.2 documentation</title>
11 <link rel="stylesheet" href="../_static/sphinxdoc.css" type="text/css" />
12 <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14 <script type="text/javascript">
15 var DOCUMENTATION_OPTIONS = {
18 COLLAPSE_INDEX: false,
23 <script type="text/javascript" src="../_static/jquery.js"></script>
24 <script type="text/javascript" src="../_static/underscore.js"></script>
25 <script type="text/javascript" src="../_static/doctools.js"></script>
26 <link rel="top" title="NEPI 3.2 documentation" href="../index.html" />
32 <li class="right" style="margin-right: 10px">
33 <a href="../genindex.html" title="General Index"
34 accesskey="I">index</a></li>
36 <a href="../py-modindex.html" title="Python Module Index"
38 <li><a href="../index.html">NEPI 3.2 documentation</a> »</li>
41 <div class="sphinxsidebar">
42 <div class="sphinxsidebarwrapper">
43 <h3><a href="../index.html">Table Of Contents</a></h3>
45 <li><a class="reference internal" href="#">nepi.execution package</a><ul>
46 <li><a class="reference internal" href="#submodules">Submodules</a></li>
47 <li><a class="reference internal" href="#module-nepi.execution.attribute">nepi.execution.attribute module</a></li>
48 <li><a class="reference internal" href="#module-nepi.execution.ec">nepi.execution.ec module</a></li>
49 <li><a class="reference internal" href="#module-nepi.execution.resource">nepi.execution.resource module</a></li>
50 <li><a class="reference internal" href="#module-nepi.execution.runner">nepi.execution.runner module</a></li>
51 <li><a class="reference internal" href="#module-nepi.execution.scheduler">nepi.execution.scheduler module</a></li>
52 <li><a class="reference internal" href="#module-nepi.execution.tags">nepi.execution.tags module</a></li>
53 <li><a class="reference internal" href="#module-nepi.execution.trace">nepi.execution.trace module</a></li>
54 <li><a class="reference internal" href="#module-nepi.execution">Module contents</a></li>
60 <ul class="this-page-menu">
61 <li><a href="../_sources/_layout/nepi.execution.txt"
62 rel="nofollow">Show Source</a></li>
64 <div id="searchbox" style="display: none">
66 <form class="search" action="../search.html" method="get">
67 <input type="text" name="q" />
68 <input type="submit" value="Go" />
69 <input type="hidden" name="check_keywords" value="yes" />
70 <input type="hidden" name="area" value="default" />
72 <p class="searchtip" style="font-size: 90%">
73 Enter search terms or a module, class or function name.
76 <script type="text/javascript">$('#searchbox').show(0);</script>
80 <div class="document">
81 <div class="documentwrapper">
82 <div class="bodywrapper">
85 <div class="section" id="nepi-execution-package">
86 <h1>nepi.execution package<a class="headerlink" href="#nepi-execution-package" title="Permalink to this headline">¶</a></h1>
87 <div class="section" id="submodules">
88 <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2>
90 <div class="section" id="module-nepi.execution.attribute">
91 <span id="nepi-execution-attribute-module"></span><h2>nepi.execution.attribute module<a class="headerlink" href="#module-nepi.execution.attribute" title="Permalink to this headline">¶</a></h2>
93 <dt id="nepi.execution.attribute.Attribute">
94 <em class="property">class </em><tt class="descclassname">nepi.execution.attribute.</tt><tt class="descname">Attribute</tt><big>(</big><em>name</em>, <em>help</em>, <em>type='STRING'</em>, <em>flags=None</em>, <em>default=None</em>, <em>allowed=None</em>, <em>range=None</em>, <em>set_hook=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/attribute.html#Attribute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.attribute.Attribute" title="Permalink to this definition">¶</a></dt>
95 <dd><p>Bases: <a class="reference external" href="http://docs.python.org/library/functions.html#object" title="(in Python v2.7)"><tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></a></p>
96 <p>An Attribute exposes a configuration parameter of a resource</p>
97 <dl class="attribute">
98 <dt id="nepi.execution.attribute.Attribute.allowed">
99 <tt class="descname">allowed</tt><a class="reference internal" href="../_modules/nepi/execution/attribute.html#Attribute.allowed"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.attribute.Attribute.allowed" title="Permalink to this definition">¶</a></dt>
100 <dd><p>Returns the set of allowed values for the Attribute</p>
103 <dl class="attribute">
104 <dt id="nepi.execution.attribute.Attribute.default">
105 <tt class="descname">default</tt><a class="reference internal" href="../_modules/nepi/execution/attribute.html#Attribute.default"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.attribute.Attribute.default" title="Permalink to this definition">¶</a></dt>
106 <dd><p>Returns the default value of the Attribute</p>
109 <dl class="attribute">
110 <dt id="nepi.execution.attribute.Attribute.flags">
111 <tt class="descname">flags</tt><a class="reference internal" href="../_modules/nepi/execution/attribute.html#Attribute.flags"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.attribute.Attribute.flags" title="Permalink to this definition">¶</a></dt>
112 <dd><p>Returns the flags of the Attribute</p>
116 <dt id="nepi.execution.attribute.Attribute.get_value">
117 <tt class="descname">get_value</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/attribute.html#Attribute.get_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.attribute.Attribute.get_value" title="Permalink to this definition">¶</a></dt>
118 <dd><p>Returns the value of the Attribute</p>
121 <dl class="attribute">
122 <dt id="nepi.execution.attribute.Attribute.has_changed">
123 <tt class="descname">has_changed</tt><a class="reference internal" href="../_modules/nepi/execution/attribute.html#Attribute.has_changed"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.attribute.Attribute.has_changed" title="Permalink to this definition">¶</a></dt>
124 <dd><p>Returns True if the value has changed from the default</p>
128 <dt id="nepi.execution.attribute.Attribute.has_flag">
129 <tt class="descname">has_flag</tt><big>(</big><em>flag</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/attribute.html#Attribute.has_flag"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.attribute.Attribute.has_flag" title="Permalink to this definition">¶</a></dt>
130 <dd><p>Returns True if the Attribute has the flag ‘flag’</p>
131 <table class="docutils field-list" frame="void" rules="none">
132 <col class="field-name" />
133 <col class="field-body" />
135 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>flag</strong> (<em>Flags</em>) – Flag to be checked</td>
141 <dl class="attribute">
142 <dt id="nepi.execution.attribute.Attribute.help">
143 <tt class="descname">help</tt><a class="reference internal" href="../_modules/nepi/execution/attribute.html#Attribute.help"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.attribute.Attribute.help" title="Permalink to this definition">¶</a></dt>
144 <dd><p>Returns the description of the Attribute</p>
148 <dt id="nepi.execution.attribute.Attribute.is_valid_value">
149 <tt class="descname">is_valid_value</tt><big>(</big><em>value</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/attribute.html#Attribute.is_valid_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.attribute.Attribute.is_valid_value" title="Permalink to this definition">¶</a></dt>
150 <dd><p>Attribute subclasses will override this method to add
151 adequate validation</p>
154 <dl class="attribute">
155 <dt id="nepi.execution.attribute.Attribute.name">
156 <tt class="descname">name</tt><a class="reference internal" href="../_modules/nepi/execution/attribute.html#Attribute.name"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.attribute.Attribute.name" title="Permalink to this definition">¶</a></dt>
157 <dd><p>Returns the name of the Attribute</p>
160 <dl class="attribute">
161 <dt id="nepi.execution.attribute.Attribute.range">
162 <tt class="descname">range</tt><a class="reference internal" href="../_modules/nepi/execution/attribute.html#Attribute.range"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.attribute.Attribute.range" title="Permalink to this definition">¶</a></dt>
163 <dd><p>Returns the range of allowed numerical values for the Attribute</p>
167 <dt id="nepi.execution.attribute.Attribute.set_value">
168 <tt class="descname">set_value</tt><big>(</big><em>value</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/attribute.html#Attribute.set_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.attribute.Attribute.set_value" title="Permalink to this definition">¶</a></dt>
169 <dd><p>Configure a new value for the Attribute</p>
172 <dl class="attribute">
173 <dt id="nepi.execution.attribute.Attribute.type">
174 <tt class="descname">type</tt><a class="reference internal" href="../_modules/nepi/execution/attribute.html#Attribute.type"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.attribute.Attribute.type" title="Permalink to this definition">¶</a></dt>
175 <dd><p>Returns the type of the Attribute</p>
178 <dl class="attribute">
179 <dt id="nepi.execution.attribute.Attribute.value">
180 <tt class="descname">value</tt><a class="headerlink" href="#nepi.execution.attribute.Attribute.value" title="Permalink to this definition">¶</a></dt>
181 <dd><p>Returns the value of the Attribute</p>
187 <dt id="nepi.execution.attribute.Flags">
188 <em class="property">class </em><tt class="descclassname">nepi.execution.attribute.</tt><tt class="descname">Flags</tt><a class="reference internal" href="../_modules/nepi/execution/attribute.html#Flags"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.attribute.Flags" title="Permalink to this definition">¶</a></dt>
189 <dd><p>Flags to characterize the scope of an Attribute</p>
190 <dl class="attribute">
191 <dt id="nepi.execution.attribute.Flags.Construct">
192 <tt class="descname">Construct</tt><em class="property"> = 8</em><a class="headerlink" href="#nepi.execution.attribute.Flags.Construct" title="Permalink to this definition">¶</a></dt>
195 <dl class="attribute">
196 <dt id="nepi.execution.attribute.Flags.Credential">
197 <tt class="descname">Credential</tt><em class="property"> = 20</em><a class="headerlink" href="#nepi.execution.attribute.Flags.Credential" title="Permalink to this definition">¶</a></dt>
200 <dl class="attribute">
201 <dt id="nepi.execution.attribute.Flags.Design">
202 <tt class="descname">Design</tt><em class="property"> = 4</em><a class="headerlink" href="#nepi.execution.attribute.Flags.Design" title="Permalink to this definition">¶</a></dt>
205 <dl class="attribute">
206 <dt id="nepi.execution.attribute.Flags.Filter">
207 <tt class="descname">Filter</tt><em class="property"> = 36</em><a class="headerlink" href="#nepi.execution.attribute.Flags.Filter" title="Permalink to this definition">¶</a></dt>
210 <dl class="attribute">
211 <dt id="nepi.execution.attribute.Flags.Global">
212 <tt class="descname">Global</tt><em class="property"> = 128</em><a class="headerlink" href="#nepi.execution.attribute.Flags.Global" title="Permalink to this definition">¶</a></dt>
215 <dl class="attribute">
216 <dt id="nepi.execution.attribute.Flags.NoRead">
217 <tt class="descname">NoRead</tt><em class="property"> = 1</em><a class="headerlink" href="#nepi.execution.attribute.Flags.NoRead" title="Permalink to this definition">¶</a></dt>
220 <dl class="attribute">
221 <dt id="nepi.execution.attribute.Flags.NoWrite">
222 <tt class="descname">NoWrite</tt><em class="property"> = 2</em><a class="headerlink" href="#nepi.execution.attribute.Flags.NoWrite" title="Permalink to this definition">¶</a></dt>
225 <dl class="attribute">
226 <dt id="nepi.execution.attribute.Flags.Reserved">
227 <tt class="descname">Reserved</tt><em class="property"> = 64</em><a class="headerlink" href="#nepi.execution.attribute.Flags.Reserved" title="Permalink to this definition">¶</a></dt>
233 <dt id="nepi.execution.attribute.Types">
234 <em class="property">class </em><tt class="descclassname">nepi.execution.attribute.</tt><tt class="descname">Types</tt><a class="reference internal" href="../_modules/nepi/execution/attribute.html#Types"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.attribute.Types" title="Permalink to this definition">¶</a></dt>
235 <dd><p>Allowed types for the Attribute value</p>
236 <dl class="attribute">
237 <dt id="nepi.execution.attribute.Types.Bool">
238 <tt class="descname">Bool</tt><em class="property"> = 'BOOL'</em><a class="headerlink" href="#nepi.execution.attribute.Types.Bool" title="Permalink to this definition">¶</a></dt>
241 <dl class="attribute">
242 <dt id="nepi.execution.attribute.Types.Double">
243 <tt class="descname">Double</tt><em class="property"> = 'DOUBLE'</em><a class="headerlink" href="#nepi.execution.attribute.Types.Double" title="Permalink to this definition">¶</a></dt>
246 <dl class="attribute">
247 <dt id="nepi.execution.attribute.Types.Enumerate">
248 <tt class="descname">Enumerate</tt><em class="property"> = 'ENUM'</em><a class="headerlink" href="#nepi.execution.attribute.Types.Enumerate" title="Permalink to this definition">¶</a></dt>
251 <dl class="attribute">
252 <dt id="nepi.execution.attribute.Types.Integer">
253 <tt class="descname">Integer</tt><em class="property"> = 'INTEGER'</em><a class="headerlink" href="#nepi.execution.attribute.Types.Integer" title="Permalink to this definition">¶</a></dt>
256 <dl class="attribute">
257 <dt id="nepi.execution.attribute.Types.String">
258 <tt class="descname">String</tt><em class="property"> = 'STRING'</em><a class="headerlink" href="#nepi.execution.attribute.Types.String" title="Permalink to this definition">¶</a></dt>
264 <div class="section" id="module-nepi.execution.ec">
265 <span id="nepi-execution-ec-module"></span><h2>nepi.execution.ec module<a class="headerlink" href="#module-nepi.execution.ec" title="Permalink to this headline">¶</a></h2>
267 <dt id="nepi.execution.ec.ECState">
268 <em class="property">class </em><tt class="descclassname">nepi.execution.ec.</tt><tt class="descname">ECState</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#ECState"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ECState" title="Permalink to this definition">¶</a></dt>
269 <dd><p>Bases: <a class="reference external" href="http://docs.python.org/library/functions.html#object" title="(in Python v2.7)"><tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></a></p>
270 <p>Possible states of the ExperimentController</p>
271 <dl class="attribute">
272 <dt id="nepi.execution.ec.ECState.FAILED">
273 <tt class="descname">FAILED</tt><em class="property"> = 2</em><a class="headerlink" href="#nepi.execution.ec.ECState.FAILED" title="Permalink to this definition">¶</a></dt>
276 <dl class="attribute">
277 <dt id="nepi.execution.ec.ECState.RELEASED">
278 <tt class="descname">RELEASED</tt><em class="property"> = 3</em><a class="headerlink" href="#nepi.execution.ec.ECState.RELEASED" title="Permalink to this definition">¶</a></dt>
281 <dl class="attribute">
282 <dt id="nepi.execution.ec.ECState.RUNNING">
283 <tt class="descname">RUNNING</tt><em class="property"> = 1</em><a class="headerlink" href="#nepi.execution.ec.ECState.RUNNING" title="Permalink to this definition">¶</a></dt>
286 <dl class="attribute">
287 <dt id="nepi.execution.ec.ECState.TERMINATED">
288 <tt class="descname">TERMINATED</tt><em class="property"> = 4</em><a class="headerlink" href="#nepi.execution.ec.ECState.TERMINATED" title="Permalink to this definition">¶</a></dt>
294 <dt id="nepi.execution.ec.ExperimentController">
295 <em class="property">class </em><tt class="descclassname">nepi.execution.ec.</tt><tt class="descname">ExperimentController</tt><big>(</big><em>exp_id=None</em>, <em>local_dir=None</em>, <em>persist=False</em>, <em>fm=None</em>, <em>add_node_callback=None</em>, <em>add_edge_callback=None</em>, <em>**kwargs</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController" title="Permalink to this definition">¶</a></dt>
296 <dd><p>Bases: <a class="reference external" href="http://docs.python.org/library/functions.html#object" title="(in Python v2.7)"><tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></a></p>
297 <p>An experiment, or scenario, is defined by a concrete set of resources,
298 and the behavior, configuration and interconnection of those resources.
299 The Experiment Description (ED) is a detailed representation of a
300 single experiment. It contains all the necessary information to
301 allow repeating the experiment. NEPI allows to describe
302 experiments by registering components (resources), configuring them
303 and interconnecting them.</p>
304 <p>A same experiment (scenario) can be executed many times, generating
305 different results. We call an experiment execution (instance) a ‘run’.</p>
306 <p>The ExperimentController (EC), is the entity responsible of
307 managing an experiment run. The same scenario can be
308 recreated (and re-run) by instantiating an EC and recreating
309 the same experiment description.</p>
310 <p>An experiment is represented as a graph of interconnected
311 resources. A resource is a generic concept in the sense that any
312 component taking part of an experiment, whether physical of
313 virtual, is considered a resource. A resources could be a host,
314 a virtual machine, an application, a simulator, a IP address.</p>
315 <p>A ResourceManager (RM), is the entity responsible for managing a
316 single resource. ResourceManagers are specific to a resource
317 type (i.e. An RM to control a Linux application will not be
318 the same as the RM used to control a ns-3 simulation).
319 To support a new type of resource, a new RM must be implemented.
320 NEPI already provides a variety of RMs to control basic resources,
321 and new can be extended from the existing ones.</p>
322 <p>Through the EC interface the user can create ResourceManagers (RMs),
323 configure them and interconnect them, to describe an experiment.
324 Describing an experiment through the EC does not run the experiment.
325 Only when the ‘deploy()’ method is invoked on the EC, the EC will take
326 actions to transform the ‘described’ experiment into a ‘running’ experiment.</p>
327 <p>While the experiment is running, it is possible to continue to
328 create/configure/connect RMs, and to deploy them to involve new
329 resources in the experiment (this is known as ‘interactive’ deployment).</p>
330 <p>An experiments in NEPI is identified by a string id,
331 which is either given by the user, or automatically generated by NEPI.
332 The purpose of this identifier is to separate files and results that
333 belong to different experiment scenarios.
334 However, since a same ‘experiment’ can be run many times, the experiment
335 id is not enough to identify an experiment instance (run).
336 For this reason, the ExperimentController has two identifier, the
337 exp_id, which can be re-used in different ExperimentController,
338 and the run_id, which is unique to one ExperimentController instance, and
339 is automatically generated by NEPI.</p>
340 <dl class="attribute">
341 <dt id="nepi.execution.ec.ExperimentController.abort">
342 <tt class="descname">abort</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.abort"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.abort" title="Permalink to this definition">¶</a></dt>
343 <dd><p>Returns True if the experiment has failed and should be interrupted,
348 <dt id="nepi.execution.ec.ExperimentController.deploy">
349 <tt class="descname">deploy</tt><big>(</big><em>guids=None</em>, <em>wait_all_ready=True</em>, <em>group=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.deploy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.deploy" title="Permalink to this definition">¶</a></dt>
350 <dd><p>Deploys all ResourceManagers in the guids list.</p>
351 <p>If the argument ‘guids’ is not given, all RMs with state NEW
354 <div><table class="docutils field-list" frame="void" rules="none">
355 <col class="field-name" />
356 <col class="field-body" />
358 <tr class="field-odd field"><th class="field-name">param guids:</th><td class="field-body">List of guids of RMs to deploy</td>
360 <tr class="field-even field"><th class="field-name">type guids:</th><td class="field-body">list</td>
362 <tr class="field-odd field"><th class="field-name" colspan="2">param wait_all_ready:</th></tr>
363 <tr class="field-odd field"><td> </td><td class="field-body">Wait until all RMs are ready in
364 order to start the RMs</td>
366 <tr class="field-even field"><th class="field-name">type guid:</th><td class="field-body">int</td>
368 <tr class="field-odd field"><th class="field-name">param group:</th><td class="field-body">Id of deployment group in which to deploy RMs</td>
370 <tr class="field-even field"><th class="field-name">type group:</th><td class="field-body">int</td>
378 <dt id="nepi.execution.ec.ExperimentController.discover">
379 <tt class="descname">discover</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.discover"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.discover" title="Permalink to this definition">¶</a></dt>
380 <dd><p>Discovers an available resource matching the criteria defined
381 by the RM with guid ‘guid’, and associates that resource to the RM</p>
382 <p>Not all RM types require (or are capable of) performing resource
383 discovery. For the RM types which are not capable of doing so,
384 invoking this method does not have any consequences.</p>
386 <div><table class="docutils field-list" frame="void" rules="none">
387 <col class="field-name" />
388 <col class="field-body" />
390 <tr class="field-odd field"><th class="field-name">param guid:</th><td class="field-body">Guid of the RM</td>
392 <tr class="field-even field"><th class="field-name">type guid:</th><td class="field-body">int</td>
399 <dl class="attribute">
400 <dt id="nepi.execution.ec.ExperimentController.ecstate">
401 <tt class="descname">ecstate</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.ecstate"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.ecstate" title="Permalink to this definition">¶</a></dt>
402 <dd><p>Returns the state of the Experiment Controller</p>
406 <dt id="nepi.execution.ec.ExperimentController.enable_trace">
407 <tt class="descname">enable_trace</tt><big>(</big><em>guid</em>, <em>name</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.enable_trace"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.enable_trace" title="Permalink to this definition">¶</a></dt>
408 <dd><p>Enables a trace to be collected during the experiment run</p>
409 <table class="docutils field-list" frame="void" rules="none">
410 <col class="field-name" />
411 <col class="field-body" />
413 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Name of the trace</td>
419 <dl class="attribute">
420 <dt id="nepi.execution.ec.ExperimentController.exp_dir">
421 <tt class="descname">exp_dir</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.exp_dir"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.exp_dir" title="Permalink to this definition">¶</a></dt>
422 <dd><p>Local directory to store results and other files related to the
426 <dl class="attribute">
427 <dt id="nepi.execution.ec.ExperimentController.exp_id">
428 <tt class="descname">exp_id</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.exp_id"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.exp_id" title="Permalink to this definition">¶</a></dt>
429 <dd><p>Returns the experiment id assigned by the user</p>
432 <dl class="attribute">
433 <dt id="nepi.execution.ec.ExperimentController.failure_level">
434 <tt class="descname">failure_level</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.failure_level"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.failure_level" title="Permalink to this definition">¶</a></dt>
435 <dd><p>Returns the level of FAILURE of th experiment</p>
439 <dt id="nepi.execution.ec.ExperimentController.filter_resources">
440 <tt class="descname">filter_resources</tt><big>(</big><em>rtype</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.filter_resources"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.filter_resources" title="Permalink to this definition">¶</a></dt>
441 <dd><p>Returns the guids of all ResourceManagers of type rtype</p>
442 <table class="docutils field-list" frame="void" rules="none">
443 <col class="field-name" />
444 <col class="field-body" />
446 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>rtype</strong> (<a class="reference external" href="http://docs.python.org/library/string.html#module-string" title="(in Python v2.7)"><em>string</em></a>) – Resource type</td>
448 <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">list of guids</td>
454 <dl class="attribute">
455 <dt id="nepi.execution.ec.ExperimentController.fm">
456 <tt class="descname">fm</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.fm"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.fm" title="Permalink to this definition">¶</a></dt>
457 <dd><p>Returns the failure manager</p>
461 <dt id="nepi.execution.ec.ExperimentController.get">
462 <tt class="descname">get</tt><big>(</big><em>guid</em>, <em>name</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.get"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.get" title="Permalink to this definition">¶</a></dt>
463 <dd><p>Returns the value of the attribute with name ‘name’ on the
464 RM with guid ‘guid’</p>
466 <div><table class="docutils field-list" frame="void" rules="none">
467 <col class="field-name" />
468 <col class="field-body" />
470 <tr class="field-odd field"><th class="field-name">param guid:</th><td class="field-body">Guid of the RM</td>
472 <tr class="field-even field"><th class="field-name">type guid:</th><td class="field-body">int</td>
474 <tr class="field-odd field"><th class="field-name">param name:</th><td class="field-body">Name of the attribute</td>
476 <tr class="field-even field"><th class="field-name">type name:</th><td class="field-body">str</td>
478 <tr class="field-odd field"><th class="field-name">return:</th><td class="field-body">The value of the attribute with name ‘name’</td>
486 <dt id="nepi.execution.ec.ExperimentController.get_attribute">
487 <tt class="descname">get_attribute</tt><big>(</big><em>guid</em>, <em>name</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.get_attribute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.get_attribute" title="Permalink to this definition">¶</a></dt>
488 <dd><p>Returns the attribute ‘name’ of the RM with guid ‘guid’</p>
489 <table class="docutils field-list" frame="void" rules="none">
490 <col class="field-name" />
491 <col class="field-body" />
493 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
494 <li><strong>guid</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – Guid of the RM</li>
495 <li><strong>name</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Name of the attribute</li>
499 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">The attribute with name ‘name’</p>
502 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">Attribute</p>
510 <dt id="nepi.execution.ec.ExperimentController.get_attributes">
511 <tt class="descname">get_attributes</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.get_attributes"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.get_attributes" title="Permalink to this definition">¶</a></dt>
512 <dd><p>Returns all the attributes of the RM with guid ‘guid’</p>
513 <table class="docutils field-list" frame="void" rules="none">
514 <col class="field-name" />
515 <col class="field-body" />
517 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>guid</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – Guid of the RM</td>
519 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">List of attributes</td>
521 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">list</td>
528 <dt id="nepi.execution.ec.ExperimentController.get_discover_time">
529 <tt class="descname">get_discover_time</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.get_discover_time"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.get_discover_time" title="Permalink to this definition">¶</a></dt>
530 <dd><p>Returns the discover time of the RM as a timestamp</p>
534 <dt id="nepi.execution.ec.ExperimentController.get_failed_time">
535 <tt class="descname">get_failed_time</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.get_failed_time"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.get_failed_time" title="Permalink to this definition">¶</a></dt>
536 <dd><p>Returns the time failure occured for the RM as a timestamp</p>
540 <dt id="nepi.execution.ec.ExperimentController.get_global">
541 <tt class="descname">get_global</tt><big>(</big><em>rtype</em>, <em>name</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.get_global"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.get_global" title="Permalink to this definition">¶</a></dt>
542 <dd><p>Returns the value of the global attribute with name ‘name’ on the
543 RMs of rtype ‘rtype’.</p>
545 <div><table class="docutils field-list" frame="void" rules="none">
546 <col class="field-name" />
547 <col class="field-body" />
549 <tr class="field-odd field"><th class="field-name">param guid:</th><td class="field-body">Guid of the RM</td>
551 <tr class="field-even field"><th class="field-name">type guid:</th><td class="field-body">int</td>
553 <tr class="field-odd field"><th class="field-name">param name:</th><td class="field-body">Name of the attribute</td>
555 <tr class="field-even field"><th class="field-name">type name:</th><td class="field-body">str</td>
557 <tr class="field-odd field"><th class="field-name">return:</th><td class="field-body">The value of the attribute with name ‘name’</td>
565 <dt id="nepi.execution.ec.ExperimentController.get_provision_time">
566 <tt class="descname">get_provision_time</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.get_provision_time"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.get_provision_time" title="Permalink to this definition">¶</a></dt>
567 <dd><p>Returns the provision time of the RM as a timestamp</p>
571 <dt id="nepi.execution.ec.ExperimentController.get_ready_time">
572 <tt class="descname">get_ready_time</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.get_ready_time"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.get_ready_time" title="Permalink to this definition">¶</a></dt>
573 <dd><p>Returns the deployment time of the RM as a timestamp</p>
577 <dt id="nepi.execution.ec.ExperimentController.get_release_time">
578 <tt class="descname">get_release_time</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.get_release_time"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.get_release_time" title="Permalink to this definition">¶</a></dt>
579 <dd><p>Returns the release time of the RM as a timestamp</p>
583 <dt id="nepi.execution.ec.ExperimentController.get_resource">
584 <tt class="descname">get_resource</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.get_resource"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.get_resource" title="Permalink to this definition">¶</a></dt>
585 <dd><p>Returns a registered ResourceManager by its guid</p>
586 <table class="docutils field-list" frame="void" rules="none">
587 <col class="field-name" />
588 <col class="field-body" />
590 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>guid</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – Id of the resource</td>
592 <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">ResourceManager</td>
599 <dt id="nepi.execution.ec.ExperimentController.get_resources_by_type">
600 <tt class="descname">get_resources_by_type</tt><big>(</big><em>rtype</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.get_resources_by_type"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.get_resources_by_type" title="Permalink to this definition">¶</a></dt>
601 <dd><p>Returns the ResourceManager objects of type rtype</p>
602 <table class="docutils field-list" frame="void" rules="none">
603 <col class="field-name" />
604 <col class="field-body" />
606 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>rtype</strong> (<a class="reference external" href="http://docs.python.org/library/string.html#module-string" title="(in Python v2.7)"><em>string</em></a>) – Resource type</td>
608 <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">list of ResourceManagers</td>
615 <dt id="nepi.execution.ec.ExperimentController.get_start_time">
616 <tt class="descname">get_start_time</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.get_start_time"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.get_start_time" title="Permalink to this definition">¶</a></dt>
617 <dd><p>Returns the start time of the RM as a timestamp</p>
621 <dt id="nepi.execution.ec.ExperimentController.get_stop_time">
622 <tt class="descname">get_stop_time</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.get_stop_time"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.get_stop_time" title="Permalink to this definition">¶</a></dt>
623 <dd><p>Returns the stop time of the RM as a timestamp</p>
627 <dt id="nepi.execution.ec.ExperimentController.get_task">
628 <tt class="descname">get_task</tt><big>(</big><em>tid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.get_task"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.get_task" title="Permalink to this definition">¶</a></dt>
629 <dd><p>Returns a task by its id</p>
630 <table class="docutils field-list" frame="void" rules="none">
631 <col class="field-name" />
632 <col class="field-body" />
634 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>tid</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – Id of the task</td>
636 <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">Task</td>
643 <dt id="nepi.execution.ec.ExperimentController.get_traces">
644 <tt class="descname">get_traces</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.get_traces"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.get_traces" title="Permalink to this definition">¶</a></dt>
645 <dd><p>Returns the list of the trace names of the RM with guid ‘guid’</p>
646 <table class="docutils field-list" frame="void" rules="none">
647 <col class="field-name" />
648 <col class="field-body" />
650 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>guid</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – Guid of the RM</td>
652 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">List of trace names</td>
654 <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">list</td>
661 <dt id="nepi.execution.ec.ExperimentController.inform_failure">
662 <tt class="descname">inform_failure</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.inform_failure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.inform_failure" title="Permalink to this definition">¶</a></dt>
663 <dd><p>Reports a failure in a RM to the EC for evaluation</p>
664 <table class="docutils field-list" frame="void" rules="none">
665 <col class="field-name" />
666 <col class="field-body" />
668 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>guid</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – Resource id</td>
674 <dl class="classmethod">
675 <dt id="nepi.execution.ec.ExperimentController.load">
676 <em class="property">classmethod </em><tt class="descname">load</tt><big>(</big><em>filepath</em>, <em>format='xml'</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.load"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.load" title="Permalink to this definition">¶</a></dt>
679 <dl class="attribute">
680 <dt id="nepi.execution.ec.ExperimentController.local_dir">
681 <tt class="descname">local_dir</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.local_dir"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.local_dir" title="Permalink to this definition">¶</a></dt>
682 <dd><p>Root local directory for experiment files</p>
685 <dl class="attribute">
686 <dt id="nepi.execution.ec.ExperimentController.logger">
687 <tt class="descname">logger</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.logger"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.logger" title="Permalink to this definition">¶</a></dt>
688 <dd><p>Returns the logger instance of the Experiment Controller</p>
691 <dl class="attribute">
692 <dt id="nepi.execution.ec.ExperimentController.netgraph">
693 <tt class="descname">netgraph</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.netgraph"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.netgraph" title="Permalink to this definition">¶</a></dt>
694 <dd><p>Return NetGraph instance if experiment description was automatically
698 <dl class="attribute">
699 <dt id="nepi.execution.ec.ExperimentController.nthreads">
700 <tt class="descname">nthreads</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.nthreads"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.nthreads" title="Permalink to this definition">¶</a></dt>
701 <dd><p>Returns the number of processing nthreads used</p>
704 <dl class="attribute">
705 <dt id="nepi.execution.ec.ExperimentController.persist">
706 <tt class="descname">persist</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.persist"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.persist" title="Permalink to this definition">¶</a></dt>
707 <dd><p>If True, persists the ExperimentController to XML format upon
708 experiment completion</p>
712 <dt id="nepi.execution.ec.ExperimentController.plot">
713 <tt class="descname">plot</tt><big>(</big><em>dirpath=None</em>, <em>format='figure'</em>, <em>show=False</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.plot"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.plot" title="Permalink to this definition">¶</a></dt>
717 <dt id="nepi.execution.ec.ExperimentController.provision">
718 <tt class="descname">provision</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.provision"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.provision" title="Permalink to this definition">¶</a></dt>
719 <dd><p>Provisions the resource associated to the RM with guid ‘guid’.</p>
720 <p>Provisioning means making a resource ‘accessible’ to the user.
721 Not all RM types require (or are capable of) performing resource
722 provisioning. For the RM types which are not capable of doing so,
723 invoking this method does not have any consequences.</p>
725 <div><table class="docutils field-list" frame="void" rules="none">
726 <col class="field-name" />
727 <col class="field-body" />
729 <tr class="field-odd field"><th class="field-name">param guid:</th><td class="field-body">Guid of the RM</td>
731 <tr class="field-even field"><th class="field-name">type guid:</th><td class="field-body">int</td>
739 <dt id="nepi.execution.ec.ExperimentController.register_condition">
740 <tt class="descname">register_condition</tt><big>(</big><em>guids1</em>, <em>action</em>, <em>guids2</em>, <em>state</em>, <em>time=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.register_condition"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.register_condition" title="Permalink to this definition">¶</a></dt>
741 <dd><p>Registers an action START, STOP or DEPLOY for all RM on list
742 guids1 to occur at time ‘time’ after all elements in list guids2
743 have reached state ‘state’.</p>
745 <div><table class="docutils field-list" frame="void" rules="none">
746 <col class="field-name" />
747 <col class="field-body" />
749 <tr class="field-odd field"><th class="field-name">param guids1:</th><td class="field-body">List of guids of RMs subjected to action</td>
751 <tr class="field-even field"><th class="field-name">type guids1:</th><td class="field-body">list</td>
753 <tr class="field-odd field"><th class="field-name">param action:</th><td class="field-body">Action to perform (either START, STOP or DEPLOY)</td>
755 <tr class="field-even field"><th class="field-name">type action:</th><td class="field-body">ResourceAction</td>
757 <tr class="field-odd field"><th class="field-name">param guids2:</th><td class="field-body">List of guids of RMs to we waited for</td>
759 <tr class="field-even field"><th class="field-name">type guids2:</th><td class="field-body">list</td>
761 <tr class="field-odd field"><th class="field-name">param state:</th><td class="field-body">State to wait for on RMs of list guids2 (STARTED,
764 <tr class="field-even field"><th class="field-name">type state:</th><td class="field-body">ResourceState</td>
766 <tr class="field-odd field"><th class="field-name">param time:</th><td class="field-body">Time to wait after guids2 has reached status</td>
768 <tr class="field-even field"><th class="field-name">type time:</th><td class="field-body">string</td>
776 <dt id="nepi.execution.ec.ExperimentController.register_connection">
777 <tt class="descname">register_connection</tt><big>(</big><em>guid1</em>, <em>guid2</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.register_connection"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.register_connection" title="Permalink to this definition">¶</a></dt>
778 <dd><p>Registers a connection between a RM with guid ‘guid1’
779 and another RM with guid ‘guid2’.</p>
780 <p>The order of the in which the two guids are provided is not
781 important, since the connection relationship is symmetric.</p>
783 <div><table class="docutils field-list" frame="void" rules="none">
784 <col class="field-name" />
785 <col class="field-body" />
787 <tr class="field-odd field"><th class="field-name">param guid1:</th><td class="field-body">First guid to connect</td>
789 <tr class="field-even field"><th class="field-name">type guid1:</th><td class="field-body">ResourceManager</td>
791 <tr class="field-odd field"><th class="field-name">param guid2:</th><td class="field-body">Second guid to connect</td>
793 <tr class="field-even field"><th class="field-name">type guid:</th><td class="field-body">ResourceManager</td>
801 <dt id="nepi.execution.ec.ExperimentController.register_resource">
802 <tt class="descname">register_resource</tt><big>(</big><em>rtype</em>, <em>guid=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.register_resource"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.register_resource" title="Permalink to this definition">¶</a></dt>
803 <dd><p>Registers a new ResourceManager of type ‘rtype’ in the experiment</p>
804 <p>This method will assign a new ‘guid’ for the RM, if no guid
807 <div><table class="docutils field-list" frame="void" rules="none">
808 <col class="field-name" />
809 <col class="field-body" />
811 <tr class="field-odd field"><th class="field-name">param rtype:</th><td class="field-body">Type of the RM</td>
813 <tr class="field-even field"><th class="field-name">type rtype:</th><td class="field-body">str</td>
815 <tr class="field-odd field"><th class="field-name">return:</th><td class="field-body">Guid of the RM</td>
817 <tr class="field-even field"><th class="field-name">rtype:</th><td class="field-body">int</td>
825 <dt id="nepi.execution.ec.ExperimentController.release">
826 <tt class="descname">release</tt><big>(</big><em>guids=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.release"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.release" title="Permalink to this definition">¶</a></dt>
827 <dd><p>Releases all ResourceManagers in the guids list.</p>
828 <p>If the argument ‘guids’ is not given, all RMs registered
829 in the experiment are released.</p>
831 <div><table class="docutils field-list" frame="void" rules="none">
832 <col class="field-name" />
833 <col class="field-body" />
835 <tr class="field-odd field"><th class="field-name">param guids:</th><td class="field-body">List of RM guids</td>
837 <tr class="field-even field"><th class="field-name">type guids:</th><td class="field-body">list</td>
845 <dt id="nepi.execution.ec.ExperimentController.remove_resource">
846 <tt class="descname">remove_resource</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.remove_resource"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.remove_resource" title="Permalink to this definition">¶</a></dt>
849 <dl class="attribute">
850 <dt id="nepi.execution.ec.ExperimentController.resources">
851 <tt class="descname">resources</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.resources"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.resources" title="Permalink to this definition">¶</a></dt>
852 <dd><p>Returns the guids of all ResourceManagers</p>
853 <table class="docutils field-list" frame="void" rules="none">
854 <col class="field-name" />
855 <col class="field-body" />
857 <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Set of all RM guids</td>
859 <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">list</td>
865 <dl class="attribute">
866 <dt id="nepi.execution.ec.ExperimentController.run_dir">
867 <tt class="descname">run_dir</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.run_dir"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.run_dir" title="Permalink to this definition">¶</a></dt>
868 <dd><p>Local directory to store results and other files related to the
872 <dl class="attribute">
873 <dt id="nepi.execution.ec.ExperimentController.run_id">
874 <tt class="descname">run_id</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.run_id"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.run_id" title="Permalink to this definition">¶</a></dt>
875 <dd><p>Returns the experiment instance (run) identifier (automatically
880 <dt id="nepi.execution.ec.ExperimentController.save">
881 <tt class="descname">save</tt><big>(</big><em>dirpath=None</em>, <em>format='xml'</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.save"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.save" title="Permalink to this definition">¶</a></dt>
885 <dt id="nepi.execution.ec.ExperimentController.schedule">
886 <tt class="descname">schedule</tt><big>(</big><em>date</em>, <em>callback</em>, <em>track=False</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.schedule"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.schedule" title="Permalink to this definition">¶</a></dt>
887 <dd><p>Schedules a callback to be executed at time ‘date’.</p>
888 <table class="docutils field-list" frame="void" rules="none">
889 <col class="field-name" />
890 <col class="field-body" />
892 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
893 <li><strong>date</strong> – string containing execution time for the task.
894 It can be expressed as an absolute time, using
895 timestamp format, or as a relative time matching
896 ^d+.d+(h|m|s|ms|us)$</li>
897 <li><strong>callback</strong> – code to be executed for the task. Must be a
898 Python function, and receives args and kwargs
900 <li><strong>track</strong> – if set to True, the task will be retrievable with
901 the get_task() method</li>
907 <p>:return : The Id of the task
912 <dt id="nepi.execution.ec.ExperimentController.serialize">
913 <tt class="descname">serialize</tt><big>(</big><em>format='xml'</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.serialize"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.serialize" title="Permalink to this definition">¶</a></dt>
917 <dt id="nepi.execution.ec.ExperimentController.set">
918 <tt class="descname">set</tt><big>(</big><em>guid</em>, <em>name</em>, <em>value</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.set"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.set" title="Permalink to this definition">¶</a></dt>
919 <dd><p>Modifies the value of the attribute with name ‘name’ on the
920 RM with guid ‘guid’.</p>
922 <div><table class="docutils field-list" frame="void" rules="none">
923 <col class="field-name" />
924 <col class="field-body" />
926 <tr class="field-odd field"><th class="field-name">param guid:</th><td class="field-body">Guid of the RM</td>
928 <tr class="field-even field"><th class="field-name">type guid:</th><td class="field-body">int</td>
930 <tr class="field-odd field"><th class="field-name">param name:</th><td class="field-body">Name of the attribute</td>
932 <tr class="field-even field"><th class="field-name">type name:</th><td class="field-body">str</td>
934 <tr class="field-odd field"><th class="field-name">param value:</th><td class="field-body">Value of the attribute</td>
942 <dt id="nepi.execution.ec.ExperimentController.set_global">
943 <tt class="descname">set_global</tt><big>(</big><em>rtype</em>, <em>name</em>, <em>value</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.set_global"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.set_global" title="Permalink to this definition">¶</a></dt>
944 <dd><p>Modifies the value of the global attribute with name ‘name’ on the
945 RMs of with rtype ‘rtype’.</p>
947 <div><table class="docutils field-list" frame="void" rules="none">
948 <col class="field-name" />
949 <col class="field-body" />
951 <tr class="field-odd field"><th class="field-name">param guid:</th><td class="field-body">Guid of the RM</td>
953 <tr class="field-even field"><th class="field-name">type guid:</th><td class="field-body">int</td>
955 <tr class="field-odd field"><th class="field-name">param name:</th><td class="field-body">Name of the attribute</td>
957 <tr class="field-even field"><th class="field-name">type name:</th><td class="field-body">str</td>
959 <tr class="field-odd field"><th class="field-name">param value:</th><td class="field-body">Value of the attribute</td>
967 <dt id="nepi.execution.ec.ExperimentController.set_with_conditions">
968 <tt class="descname">set_with_conditions</tt><big>(</big><em>name</em>, <em>value</em>, <em>guids1</em>, <em>guids2</em>, <em>state</em>, <em>time=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.set_with_conditions"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.set_with_conditions" title="Permalink to this definition">¶</a></dt>
969 <dd><p>Modifies the value of attribute with name ‘name’ on all RMs
970 on the guids1 list when time ‘time’ has elapsed since all
971 elements in guids2 list have reached state ‘state’.</p>
973 <div><table class="docutils field-list" frame="void" rules="none">
974 <col class="field-name" />
975 <col class="field-body" />
977 <tr class="field-odd field"><th class="field-name">param name:</th><td class="field-body">Name of attribute to set in RM</td>
979 <tr class="field-even field"><th class="field-name">type name:</th><td class="field-body">string</td>
981 <tr class="field-odd field"><th class="field-name">param value:</th><td class="field-body">Value of attribute to set in RM</td>
983 <tr class="field-even field"><th class="field-name">type name:</th><td class="field-body">string</td>
985 <tr class="field-odd field"><th class="field-name">param guids1:</th><td class="field-body">List of guids of RMs subjected to action</td>
987 <tr class="field-even field"><th class="field-name">type guids1:</th><td class="field-body">list</td>
989 <tr class="field-odd field"><th class="field-name">param action:</th><td class="field-body">Action to register (either START or STOP)</td>
991 <tr class="field-even field"><th class="field-name">type action:</th><td class="field-body">ResourceAction</td>
993 <tr class="field-odd field"><th class="field-name">param guids2:</th><td class="field-body">List of guids of RMs to we waited for</td>
995 <tr class="field-even field"><th class="field-name">type guids2:</th><td class="field-body">list</td>
997 <tr class="field-odd field"><th class="field-name">param state:</th><td class="field-body">State to wait for on RMs (STARTED, STOPPED, etc)</td>
999 <tr class="field-even field"><th class="field-name">type state:</th><td class="field-body">ResourceState</td>
1001 <tr class="field-odd field"><th class="field-name">param time:</th><td class="field-body">Time to wait after guids2 has reached status</td>
1003 <tr class="field-even field"><th class="field-name">type time:</th><td class="field-body">string</td>
1011 <dt id="nepi.execution.ec.ExperimentController.shutdown">
1012 <tt class="descname">shutdown</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.shutdown"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.shutdown" title="Permalink to this definition">¶</a></dt>
1013 <dd><p>Releases all resources and stops the ExperimentController</p>
1017 <dt id="nepi.execution.ec.ExperimentController.start">
1018 <tt class="descname">start</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.start"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.start" title="Permalink to this definition">¶</a></dt>
1019 <dd><p>Starts the RM with guid ‘guid’</p>
1020 <p>Starting a RM means that the resource it controls will
1021 begin taking part of the experiment.</p>
1023 <div><table class="docutils field-list" frame="void" rules="none">
1024 <col class="field-name" />
1025 <col class="field-body" />
1026 <tbody valign="top">
1027 <tr class="field-odd field"><th class="field-name">param guid:</th><td class="field-body">Guid of the RM</td>
1029 <tr class="field-even field"><th class="field-name">type guid:</th><td class="field-body">int</td>
1037 <dt id="nepi.execution.ec.ExperimentController.state">
1038 <tt class="descname">state</tt><big>(</big><em>guid</em>, <em>hr=False</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.state"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.state" title="Permalink to this definition">¶</a></dt>
1039 <dd><p>Returns the state of a resource</p>
1040 <table class="docutils field-list" frame="void" rules="none">
1041 <col class="field-name" />
1042 <col class="field-body" />
1043 <tbody valign="top">
1044 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1045 <li><strong>guid</strong> (<em>integer</em>) – Resource guid</li>
1046 <li><strong>hr</strong> (<em>boolean</em>) – Human readable. Forces return of a
1047 status string instead of a number</li>
1056 <dt id="nepi.execution.ec.ExperimentController.stop">
1057 <tt class="descname">stop</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.stop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.stop" title="Permalink to this definition">¶</a></dt>
1058 <dd><p>Stops the RM with guid ‘guid’</p>
1059 <p>Stopping a RM means that the resource it controls will
1060 no longer take part of the experiment.</p>
1062 <div><table class="docutils field-list" frame="void" rules="none">
1063 <col class="field-name" />
1064 <col class="field-body" />
1065 <tbody valign="top">
1066 <tr class="field-odd field"><th class="field-name">param guid:</th><td class="field-body">Guid of the RM</td>
1068 <tr class="field-even field"><th class="field-name">type guid:</th><td class="field-body">int</td>
1076 <dt id="nepi.execution.ec.ExperimentController.trace">
1077 <tt class="descname">trace</tt><big>(</big><em>guid</em>, <em>name</em>, <em>attr='all'</em>, <em>block=512</em>, <em>offset=0</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.trace"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.trace" title="Permalink to this definition">¶</a></dt>
1078 <dd><p>Returns information on a collected trace, the trace stream or
1079 blocks (chunks) of the trace stream</p>
1081 <div><table class="docutils field-list" frame="void" rules="none">
1082 <col class="field-name" />
1083 <col class="field-body" />
1084 <tbody valign="top">
1085 <tr class="field-odd field"><th class="field-name">param name:</th><td class="field-body"><p class="first">Name of the trace</p>
1088 <tr class="field-even field"><th class="field-name">type name:</th><td class="field-body"><p class="first">str</p>
1091 <tr class="field-odd field"><th class="field-name">param attr:</th><td class="field-body"><p class="first">Can be one of:
1092 - TraceAttr.ALL (complete trace content),
1093 - TraceAttr.STREAM (block in bytes to read starting</p>
1095 <div><p>at offset),</p>
1098 <li>TraceAttr.PATH (full path to the trace file),</li>
1099 <li>TraceAttr.SIZE (size of trace file).</li>
1103 <tr class="field-even field"><th class="field-name">type attr:</th><td class="field-body"><p class="first">str</p>
1106 <tr class="field-odd field"><th class="field-name">param block:</th><td class="field-body"><p class="first">Number of bytes to retrieve from trace, when attr is
1107 TraceAttr.STREAM</p>
1110 <tr class="field-even field"><th class="field-name">type name:</th><td class="field-body"><p class="first">int</p>
1113 <tr class="field-odd field"><th class="field-name">param offset:</th><td class="field-body"><p class="first">Number of ‘blocks’ to skip, when attr is TraceAttr.STREAM</p>
1116 <tr class="field-even field"><th class="field-name">type name:</th><td class="field-body"><p class="first">int</p>
1119 <tr class="field-odd field"><th class="field-name">rtype:</th><td class="field-body"><p class="first last">str</p>
1128 <dt id="nepi.execution.ec.ExperimentController.trace_enabled">
1129 <tt class="descname">trace_enabled</tt><big>(</big><em>guid</em>, <em>name</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.trace_enabled"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.trace_enabled" title="Permalink to this definition">¶</a></dt>
1130 <dd><p>Returns True if the trace of name ‘name’ is enabled</p>
1131 <table class="docutils field-list" frame="void" rules="none">
1132 <col class="field-name" />
1133 <col class="field-body" />
1134 <tbody valign="top">
1135 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Name of the trace</td>
1142 <dt id="nepi.execution.ec.ExperimentController.wait">
1143 <tt class="descname">wait</tt><big>(</big><em>guids</em>, <em>state</em>, <em>quit</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.wait"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.wait" title="Permalink to this definition">¶</a></dt>
1144 <dd><p>Blocking method that waits until all RMs in the ‘guids’ list
1145 have reached a state >= ‘state’, or until the ‘quit’ callback
1148 <div><table class="docutils field-list" frame="void" rules="none">
1149 <col class="field-name" />
1150 <col class="field-body" />
1151 <tbody valign="top">
1152 <tr class="field-odd field"><th class="field-name">param guids:</th><td class="field-body">List of guids</td>
1154 <tr class="field-even field"><th class="field-name">type guids:</th><td class="field-body">list</td>
1162 <dt id="nepi.execution.ec.ExperimentController.wait_deployed">
1163 <tt class="descname">wait_deployed</tt><big>(</big><em>guids</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.wait_deployed"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.wait_deployed" title="Permalink to this definition">¶</a></dt>
1164 <dd><p>Blocking method that waits until all RMs in the ‘guids’ list
1165 have reached a state >= READY, or until a failure in the
1166 experiment occurs (i.e. abort == True)</p>
1168 <div><table class="docutils field-list" frame="void" rules="none">
1169 <col class="field-name" />
1170 <col class="field-body" />
1171 <tbody valign="top">
1172 <tr class="field-odd field"><th class="field-name">param guids:</th><td class="field-body">List of guids</td>
1174 <tr class="field-even field"><th class="field-name">type guids:</th><td class="field-body">list</td>
1182 <dt id="nepi.execution.ec.ExperimentController.wait_finished">
1183 <tt class="descname">wait_finished</tt><big>(</big><em>guids</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.wait_finished"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.wait_finished" title="Permalink to this definition">¶</a></dt>
1184 <dd><p>Blocking method that waits until all RMs in the ‘guids’ list
1185 have reached a state >= STOPPED (i.e. STOPPED, FAILED or
1186 RELEASED ), or until a failure in the experiment occurs
1187 (i.e. abort == True)</p>
1189 <div><table class="docutils field-list" frame="void" rules="none">
1190 <col class="field-name" />
1191 <col class="field-body" />
1192 <tbody valign="top">
1193 <tr class="field-odd field"><th class="field-name">param guids:</th><td class="field-body">List of guids</td>
1195 <tr class="field-even field"><th class="field-name">type guids:</th><td class="field-body">list</td>
1203 <dt id="nepi.execution.ec.ExperimentController.wait_released">
1204 <tt class="descname">wait_released</tt><big>(</big><em>guids</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.wait_released"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.wait_released" title="Permalink to this definition">¶</a></dt>
1205 <dd><p>Blocking method that waits until all RMs in the ‘guids’ list
1206 have reached a state == RELEASED, or until the EC fails</p>
1208 <div><table class="docutils field-list" frame="void" rules="none">
1209 <col class="field-name" />
1210 <col class="field-body" />
1211 <tbody valign="top">
1212 <tr class="field-odd field"><th class="field-name">param guids:</th><td class="field-body">List of guids</td>
1214 <tr class="field-even field"><th class="field-name">type guids:</th><td class="field-body">list</td>
1222 <dt id="nepi.execution.ec.ExperimentController.wait_started">
1223 <tt class="descname">wait_started</tt><big>(</big><em>guids</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#ExperimentController.wait_started"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.ExperimentController.wait_started" title="Permalink to this definition">¶</a></dt>
1224 <dd><p>Blocking method that waits until all RMs in the ‘guids’ list
1225 have reached a state >= STARTED, or until a failure in the
1226 experiment occurs (i.e. abort == True)</p>
1228 <div><table class="docutils field-list" frame="void" rules="none">
1229 <col class="field-name" />
1230 <col class="field-body" />
1231 <tbody valign="top">
1232 <tr class="field-odd field"><th class="field-name">param guids:</th><td class="field-body">List of guids</td>
1234 <tr class="field-even field"><th class="field-name">type guids:</th><td class="field-body">list</td>
1244 <dt id="nepi.execution.ec.FailureLevel">
1245 <em class="property">class </em><tt class="descclassname">nepi.execution.ec.</tt><tt class="descname">FailureLevel</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#FailureLevel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.FailureLevel" title="Permalink to this definition">¶</a></dt>
1246 <dd><p>Bases: <a class="reference external" href="http://docs.python.org/library/functions.html#object" title="(in Python v2.7)"><tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></a></p>
1247 <p>Possible failure states for the experiment</p>
1248 <dl class="attribute">
1249 <dt id="nepi.execution.ec.FailureLevel.EC_FAILURE">
1250 <tt class="descname">EC_FAILURE</tt><em class="property"> = 3</em><a class="headerlink" href="#nepi.execution.ec.FailureLevel.EC_FAILURE" title="Permalink to this definition">¶</a></dt>
1253 <dl class="attribute">
1254 <dt id="nepi.execution.ec.FailureLevel.OK">
1255 <tt class="descname">OK</tt><em class="property"> = 1</em><a class="headerlink" href="#nepi.execution.ec.FailureLevel.OK" title="Permalink to this definition">¶</a></dt>
1258 <dl class="attribute">
1259 <dt id="nepi.execution.ec.FailureLevel.RM_FAILURE">
1260 <tt class="descname">RM_FAILURE</tt><em class="property"> = 2</em><a class="headerlink" href="#nepi.execution.ec.FailureLevel.RM_FAILURE" title="Permalink to this definition">¶</a></dt>
1266 <dt id="nepi.execution.ec.FailureManager">
1267 <em class="property">class </em><tt class="descclassname">nepi.execution.ec.</tt><tt class="descname">FailureManager</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#FailureManager"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.FailureManager" title="Permalink to this definition">¶</a></dt>
1268 <dd><p>Bases: <a class="reference external" href="http://docs.python.org/library/functions.html#object" title="(in Python v2.7)"><tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></a></p>
1269 <p>The FailureManager is responsible for handling errors
1270 and deciding whether an experiment should be aborted or not</p>
1271 <dl class="attribute">
1272 <dt id="nepi.execution.ec.FailureManager.abort">
1273 <tt class="descname">abort</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#FailureManager.abort"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.FailureManager.abort" title="Permalink to this definition">¶</a></dt>
1276 <dl class="attribute">
1277 <dt id="nepi.execution.ec.FailureManager.ec">
1278 <tt class="descname">ec</tt><a class="reference internal" href="../_modules/nepi/execution/ec.html#FailureManager.ec"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.FailureManager.ec" title="Permalink to this definition">¶</a></dt>
1279 <dd><p>Returns the ExperimentController associated to this FailureManager</p>
1283 <dt id="nepi.execution.ec.FailureManager.eval_failure">
1284 <tt class="descname">eval_failure</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#FailureManager.eval_failure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.FailureManager.eval_failure" title="Permalink to this definition">¶</a></dt>
1285 <dd><p>Implements failure policy and sets the abort state of the
1286 experiment based on the failure state and criticality of
1288 <table class="docutils field-list" frame="void" rules="none">
1289 <col class="field-name" />
1290 <col class="field-body" />
1291 <tbody valign="top">
1292 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>guid</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – Guid of the RM upon which the failure of the experiment
1300 <dt id="nepi.execution.ec.FailureManager.set_ec">
1301 <tt class="descname">set_ec</tt><big>(</big><em>ec</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#FailureManager.set_ec"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.FailureManager.set_ec" title="Permalink to this definition">¶</a></dt>
1305 <dt id="nepi.execution.ec.FailureManager.set_ec_failure">
1306 <tt class="descname">set_ec_failure</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/ec.html#FailureManager.set_ec_failure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.ec.FailureManager.set_ec_failure" title="Permalink to this definition">¶</a></dt>
1312 <div class="section" id="module-nepi.execution.resource">
1313 <span id="nepi-execution-resource-module"></span><h2>nepi.execution.resource module<a class="headerlink" href="#module-nepi.execution.resource" title="Permalink to this headline">¶</a></h2>
1315 <dt id="nepi.execution.resource.ResourceAction">
1316 <em class="property">class </em><tt class="descclassname">nepi.execution.resource.</tt><tt class="descname">ResourceAction</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceAction"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceAction" title="Permalink to this definition">¶</a></dt>
1317 <dd><p>Action that a user can order to a Resource Manager</p>
1318 <dl class="attribute">
1319 <dt id="nepi.execution.resource.ResourceAction.DEPLOY">
1320 <tt class="descname">DEPLOY</tt><em class="property"> = 0</em><a class="headerlink" href="#nepi.execution.resource.ResourceAction.DEPLOY" title="Permalink to this definition">¶</a></dt>
1323 <dl class="attribute">
1324 <dt id="nepi.execution.resource.ResourceAction.START">
1325 <tt class="descname">START</tt><em class="property"> = 1</em><a class="headerlink" href="#nepi.execution.resource.ResourceAction.START" title="Permalink to this definition">¶</a></dt>
1328 <dl class="attribute">
1329 <dt id="nepi.execution.resource.ResourceAction.STOP">
1330 <tt class="descname">STOP</tt><em class="property"> = 2</em><a class="headerlink" href="#nepi.execution.resource.ResourceAction.STOP" title="Permalink to this definition">¶</a></dt>
1336 <dt id="nepi.execution.resource.ResourceFactory">
1337 <em class="property">class </em><tt class="descclassname">nepi.execution.resource.</tt><tt class="descname">ResourceFactory</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceFactory"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceFactory" title="Permalink to this definition">¶</a></dt>
1338 <dd><p>Bases: <a class="reference external" href="http://docs.python.org/library/functions.html#object" title="(in Python v2.7)"><tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></a></p>
1339 <dl class="classmethod">
1340 <dt id="nepi.execution.resource.ResourceFactory.create">
1341 <em class="property">classmethod </em><tt class="descname">create</tt><big>(</big><em>rtype</em>, <em>ec</em>, <em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceFactory.create"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceFactory.create" title="Permalink to this definition">¶</a></dt>
1342 <dd><p>Create a new instance of a Ressource Manager</p>
1345 <dl class="classmethod">
1346 <dt id="nepi.execution.resource.ResourceFactory.get_resource_type">
1347 <em class="property">classmethod </em><tt class="descname">get_resource_type</tt><big>(</big><em>rtype</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceFactory.get_resource_type"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceFactory.get_resource_type" title="Permalink to this definition">¶</a></dt>
1348 <dd><p>Return the type of the Class</p>
1351 <dl class="classmethod">
1352 <dt id="nepi.execution.resource.ResourceFactory.register_type">
1353 <em class="property">classmethod </em><tt class="descname">register_type</tt><big>(</big><em>rclass</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceFactory.register_type"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceFactory.register_type" title="Permalink to this definition">¶</a></dt>
1354 <dd><p>Register a new Ressource Manager</p>
1357 <dl class="classmethod">
1358 <dt id="nepi.execution.resource.ResourceFactory.resource_types">
1359 <em class="property">classmethod </em><tt class="descname">resource_types</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceFactory.resource_types"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceFactory.resource_types" title="Permalink to this definition">¶</a></dt>
1360 <dd><p>Return the type of the Class</p>
1366 <dt id="nepi.execution.resource.ResourceManager">
1367 <em class="property">class </em><tt class="descclassname">nepi.execution.resource.</tt><tt class="descname">ResourceManager</tt><big>(</big><em>ec</em>, <em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager" title="Permalink to this definition">¶</a></dt>
1368 <dd><p>Bases: <a class="reference internal" href="nepi.util.html#nepi.util.logger.Logger" title="nepi.util.logger.Logger"><tt class="xref py py-class docutils literal"><span class="pre">nepi.util.logger.Logger</span></tt></a></p>
1369 <p>Base clase for all ResourceManagers.</p>
1370 <p>A ResourceManger is specific to a resource type (e.g. Node,
1371 Switch, Application, etc) on a specific platform (e.g. PlanetLab,
1373 <p>The ResourceManager instances are responsible for interacting with
1374 and controlling concrete (physical or virtual) resources in the
1375 experimental platforms.</p>
1376 <dl class="attribute">
1377 <dt id="nepi.execution.resource.ResourceManager.conditions">
1378 <tt class="descname">conditions</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.conditions"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.conditions" title="Permalink to this definition">¶</a></dt>
1379 <dd><p>Returns the conditions to which the RM is subjected to.</p>
1380 <p>This method returns a dictionary of conditions lists indexed by
1381 a ResourceAction.</p>
1385 <dt id="nepi.execution.resource.ResourceManager.configure">
1386 <tt class="descname">configure</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.configure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.configure" title="Permalink to this definition">¶</a></dt>
1389 <dl class="attribute">
1390 <dt id="nepi.execution.resource.ResourceManager.connections">
1391 <tt class="descname">connections</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.connections"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.connections" title="Permalink to this definition">¶</a></dt>
1392 <dd><p>Returns the set of guids of connected RMs</p>
1396 <dt id="nepi.execution.resource.ResourceManager.deploy">
1397 <tt class="descname">deploy</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.deploy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.deploy" title="Permalink to this definition">¶</a></dt>
1401 <dt id="nepi.execution.resource.ResourceManager.deploy_with_conditions">
1402 <tt class="descname">deploy_with_conditions</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.deploy_with_conditions"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.deploy_with_conditions" title="Permalink to this definition">¶</a></dt>
1403 <dd><p>Deploy RM when all the conditions in self.conditions for
1404 action ‘READY’ are satisfied.</p>
1408 <dt id="nepi.execution.resource.ResourceManager.discover">
1409 <tt class="descname">discover</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.discover"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.discover" title="Permalink to this definition">¶</a></dt>
1412 <dl class="attribute">
1413 <dt id="nepi.execution.resource.ResourceManager.discover_time">
1414 <tt class="descname">discover_time</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.discover_time"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.discover_time" title="Permalink to this definition">¶</a></dt>
1415 <dd><p>Returns the discover time of the RM as a timestamp</p>
1419 <dt id="nepi.execution.resource.ResourceManager.do_configure">
1420 <tt class="descname">do_configure</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.do_configure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.do_configure" title="Permalink to this definition">¶</a></dt>
1424 <dt id="nepi.execution.resource.ResourceManager.do_connect">
1425 <tt class="descname">do_connect</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.do_connect"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.do_connect" title="Permalink to this definition">¶</a></dt>
1426 <dd><p>Performs actions that need to be taken upon associating RMs.
1427 This method should be redefined when necessary in child classes.</p>
1431 <dt id="nepi.execution.resource.ResourceManager.do_deploy">
1432 <tt class="descname">do_deploy</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.do_deploy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.do_deploy" title="Permalink to this definition">¶</a></dt>
1436 <dt id="nepi.execution.resource.ResourceManager.do_disconnect">
1437 <tt class="descname">do_disconnect</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.do_disconnect"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.do_disconnect" title="Permalink to this definition">¶</a></dt>
1438 <dd><p>Performs actions that need to be taken upon disassociating RMs.
1439 This method should be redefined when necessary in child classes.</p>
1443 <dt id="nepi.execution.resource.ResourceManager.do_discover">
1444 <tt class="descname">do_discover</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.do_discover"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.do_discover" title="Permalink to this definition">¶</a></dt>
1448 <dt id="nepi.execution.resource.ResourceManager.do_fail">
1449 <tt class="descname">do_fail</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.do_fail"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.do_fail" title="Permalink to this definition">¶</a></dt>
1453 <dt id="nepi.execution.resource.ResourceManager.do_provision">
1454 <tt class="descname">do_provision</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.do_provision"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.do_provision" title="Permalink to this definition">¶</a></dt>
1458 <dt id="nepi.execution.resource.ResourceManager.do_release">
1459 <tt class="descname">do_release</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.do_release"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.do_release" title="Permalink to this definition">¶</a></dt>
1463 <dt id="nepi.execution.resource.ResourceManager.do_reserve">
1464 <tt class="descname">do_reserve</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.do_reserve"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.do_reserve" title="Permalink to this definition">¶</a></dt>
1468 <dt id="nepi.execution.resource.ResourceManager.do_start">
1469 <tt class="descname">do_start</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.do_start"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.do_start" title="Permalink to this definition">¶</a></dt>
1473 <dt id="nepi.execution.resource.ResourceManager.do_stop">
1474 <tt class="descname">do_stop</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.do_stop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.do_stop" title="Permalink to this definition">¶</a></dt>
1477 <dl class="attribute">
1478 <dt id="nepi.execution.resource.ResourceManager.ec">
1479 <tt class="descname">ec</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.ec"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.ec" title="Permalink to this definition">¶</a></dt>
1480 <dd><p>Returns the Experiment Controller of the RM</p>
1484 <dt id="nepi.execution.resource.ResourceManager.enable_trace">
1485 <tt class="descname">enable_trace</tt><big>(</big><em>name</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.enable_trace"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.enable_trace" title="Permalink to this definition">¶</a></dt>
1486 <dd><p>Explicitly enable trace generation</p>
1487 <table class="docutils field-list" frame="void" rules="none">
1488 <col class="field-name" />
1489 <col class="field-body" />
1490 <tbody valign="top">
1491 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Name of the trace</td>
1498 <dt id="nepi.execution.resource.ResourceManager.fail">
1499 <tt class="descname">fail</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.fail"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.fail" title="Permalink to this definition">¶</a></dt>
1500 <dd><p>Sets the RM to state FAILED.</p>
1501 <p>This method should not be overridden directly. Specific functionality
1502 should be added in the do_fail method.</p>
1505 <dl class="attribute">
1506 <dt id="nepi.execution.resource.ResourceManager.failed_time">
1507 <tt class="descname">failed_time</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.failed_time"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.failed_time" title="Permalink to this definition">¶</a></dt>
1508 <dd><p>Returns the time failure occurred for the RM as a timestamp</p>
1512 <dt id="nepi.execution.resource.ResourceManager.get">
1513 <tt class="descname">get</tt><big>(</big><em>name</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.get"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.get" title="Permalink to this definition">¶</a></dt>
1514 <dd><p>Returns the value of the attribute</p>
1515 <table class="docutils field-list" frame="void" rules="none">
1516 <col class="field-name" />
1517 <col class="field-body" />
1518 <tbody valign="top">
1519 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Name of the attribute</td>
1521 <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">str</td>
1527 <dl class="classmethod">
1528 <dt id="nepi.execution.resource.ResourceManager.get_attribute">
1529 <em class="property">classmethod </em><tt class="descname">get_attribute</tt><big>(</big><em>name</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.get_attribute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.get_attribute" title="Permalink to this definition">¶</a></dt>
1530 <dd><p>Returns a copy of the attribute with name ‘name’</p>
1533 <dl class="classmethod">
1534 <dt id="nepi.execution.resource.ResourceManager.get_attributes">
1535 <em class="property">classmethod </em><tt class="descname">get_attributes</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.get_attributes"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.get_attributes" title="Permalink to this definition">¶</a></dt>
1536 <dd><p>Returns a copy of the attributes</p>
1540 <dt id="nepi.execution.resource.ResourceManager.get_connected">
1541 <tt class="descname">get_connected</tt><big>(</big><em>rtype=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.get_connected"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.get_connected" title="Permalink to this definition">¶</a></dt>
1542 <dd><p>Returns the list of RM with the type ‘rtype’</p>
1543 <table class="docutils field-list" frame="void" rules="none">
1544 <col class="field-name" />
1545 <col class="field-body" />
1546 <tbody valign="top">
1547 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>rtype</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Type of the RM we look for</td>
1549 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">list of guid</td>
1555 <dl class="classmethod">
1556 <dt id="nepi.execution.resource.ResourceManager.get_global">
1557 <em class="property">classmethod </em><tt class="descname">get_global</tt><big>(</big><em>name</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.get_global"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.get_global" title="Permalink to this definition">¶</a></dt>
1558 <dd><dl class="docutils">
1559 <dt>Returns the value of a global attribute</dt>
1560 <dd>Global attribute meaning an attribute for
1561 all the resources from a rtype</dd>
1563 <table class="docutils field-list" frame="void" rules="none">
1564 <col class="field-name" />
1565 <col class="field-body" />
1566 <tbody valign="top">
1567 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Name of the attribute</td>
1569 <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">str</td>
1575 <dl class="classmethod">
1576 <dt id="nepi.execution.resource.ResourceManager.get_help">
1577 <em class="property">classmethod </em><tt class="descname">get_help</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.get_help"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.get_help" title="Permalink to this definition">¶</a></dt>
1578 <dd><p>Returns the description of the type of Resource</p>
1581 <dl class="classmethod">
1582 <dt id="nepi.execution.resource.ResourceManager.get_platform">
1583 <em class="property">classmethod </em><tt class="descname">get_platform</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.get_platform"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.get_platform" title="Permalink to this definition">¶</a></dt>
1584 <dd><p>Returns the identified of the platform (i.e. testbed type)
1585 for the Resource</p>
1588 <dl class="classmethod">
1589 <dt id="nepi.execution.resource.ResourceManager.get_rtype">
1590 <em class="property">classmethod </em><tt class="descname">get_rtype</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.get_rtype"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.get_rtype" title="Permalink to this definition">¶</a></dt>
1591 <dd><p>Returns the type of the Resource Manager</p>
1594 <dl class="classmethod">
1595 <dt id="nepi.execution.resource.ResourceManager.get_traces">
1596 <em class="property">classmethod </em><tt class="descname">get_traces</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.get_traces"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.get_traces" title="Permalink to this definition">¶</a></dt>
1597 <dd><p>Returns a copy of the traces</p>
1600 <dl class="attribute">
1601 <dt id="nepi.execution.resource.ResourceManager.guid">
1602 <tt class="descname">guid</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.guid"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.guid" title="Permalink to this definition">¶</a></dt>
1603 <dd><p>Returns the global unique identifier of the RM</p>
1607 <dt id="nepi.execution.resource.ResourceManager.has_attribute">
1608 <tt class="descname">has_attribute</tt><big>(</big><em>name</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.has_attribute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.has_attribute" title="Permalink to this definition">¶</a></dt>
1609 <dd><p>Returns true if the RM has an attribute with name</p>
1610 <table class="docutils field-list" frame="void" rules="none">
1611 <col class="field-name" />
1612 <col class="field-body" />
1613 <tbody valign="top">
1614 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> (<a class="reference external" href="http://docs.python.org/library/string.html#module-string" title="(in Python v2.7)"><em>string</em></a>) – name of the attribute</td>
1621 <dt id="nepi.execution.resource.ResourceManager.has_changed">
1622 <tt class="descname">has_changed</tt><big>(</big><em>name</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.has_changed"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.has_changed" title="Permalink to this definition">¶</a></dt>
1623 <dd><dl class="docutils">
1624 <dt>Returns the True is the value of the attribute</dt>
1625 <dd>has been modified by the user.</dd>
1627 <table class="docutils field-list" frame="void" rules="none">
1628 <col class="field-name" />
1629 <col class="field-body" />
1630 <tbody valign="top">
1631 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Name of the attribute</td>
1633 <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">str</td>
1640 <dt id="nepi.execution.resource.ResourceManager.has_flag">
1641 <tt class="descname">has_flag</tt><big>(</big><em>name</em>, <em>flag</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.has_flag"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.has_flag" title="Permalink to this definition">¶</a></dt>
1642 <dd><p>Returns true if the attribute has the flag ‘flag’</p>
1643 <table class="docutils field-list" frame="void" rules="none">
1644 <col class="field-name" />
1645 <col class="field-body" />
1646 <tbody valign="top">
1647 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>flag</strong> (<em>Flags</em>) – Flag to be checked</td>
1654 <dt id="nepi.execution.resource.ResourceManager.is_rm_instance">
1655 <tt class="descname">is_rm_instance</tt><big>(</big><em>rtype</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.is_rm_instance"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.is_rm_instance" title="Permalink to this definition">¶</a></dt>
1656 <dd><p>Returns True if the RM is instance of ‘rtype’</p>
1657 <table class="docutils field-list" frame="void" rules="none">
1658 <col class="field-name" />
1659 <col class="field-body" />
1660 <tbody valign="top">
1661 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>rtype</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Type of the RM we look for</td>
1663 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True|False</td>
1670 <dt id="nepi.execution.resource.ResourceManager.log_message">
1671 <tt class="descname">log_message</tt><big>(</big><em>msg</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.log_message"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.log_message" title="Permalink to this definition">¶</a></dt>
1672 <dd><p>Returns the log message formatted with added information.</p>
1673 <table class="docutils field-list" frame="void" rules="none">
1674 <col class="field-name" />
1675 <col class="field-body" />
1676 <tbody valign="top">
1677 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>msg</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – text message</td>
1679 <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">str</td>
1686 <dt id="nepi.execution.resource.ResourceManager.provision">
1687 <tt class="descname">provision</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.provision"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.provision" title="Permalink to this definition">¶</a></dt>
1690 <dl class="attribute">
1691 <dt id="nepi.execution.resource.ResourceManager.provision_time">
1692 <tt class="descname">provision_time</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.provision_time"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.provision_time" title="Permalink to this definition">¶</a></dt>
1693 <dd><p>Returns the provision time of the RM as a timestamp</p>
1696 <dl class="attribute">
1697 <dt id="nepi.execution.resource.ResourceManager.ready_time">
1698 <tt class="descname">ready_time</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.ready_time"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.ready_time" title="Permalink to this definition">¶</a></dt>
1699 <dd><p>Returns the deployment time of the RM as a timestamp</p>
1703 <dt id="nepi.execution.resource.ResourceManager.register_condition">
1704 <tt class="descname">register_condition</tt><big>(</big><em>action</em>, <em>group</em>, <em>state</em>, <em>time=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.register_condition"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.register_condition" title="Permalink to this definition">¶</a></dt>
1705 <dd><p>Registers a condition on the resource manager to allow execution
1706 of ‘action’ only after ‘time’ has elapsed from the moment all resources
1707 in ‘group’ reached state ‘state’</p>
1708 <table class="docutils field-list" frame="void" rules="none">
1709 <col class="field-name" />
1710 <col class="field-body" />
1711 <tbody valign="top">
1712 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1713 <li><strong>action</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Action to restrict to condition (either ‘START’ or ‘STOP’)</li>
1714 <li><strong>group</strong> (<em>int or list of int</em>) – Group of RMs to wait for (list of guids)</li>
1715 <li><strong>state</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – State to wait for on all RM in group. (either ‘STARTED’, ‘STOPPED’ or ‘READY’)</li>
1716 <li><strong>time</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Time to wait after ‘state’ is reached on all RMs in group. (e.g. ‘2s’)</li>
1725 <dt id="nepi.execution.resource.ResourceManager.register_connection">
1726 <tt class="descname">register_connection</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.register_connection"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.register_connection" title="Permalink to this definition">¶</a></dt>
1727 <dd><p>Registers a connection to the RM identified by guid</p>
1728 <p>This method should not be overridden. Specific functionality
1729 should be added in the do_connect method.</p>
1730 <table class="docutils field-list" frame="void" rules="none">
1731 <col class="field-name" />
1732 <col class="field-body" />
1733 <tbody valign="top">
1734 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>guid</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – Global unique identified of the RM to connect to</td>
1741 <dt id="nepi.execution.resource.ResourceManager.release">
1742 <tt class="descname">release</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.release"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.release" title="Permalink to this definition">¶</a></dt>
1743 <dd><p>Perform actions to free resources used by the RM.</p>
1744 <p>This method is responsible for releasing resources that were
1745 used during the experiment by the RM.</p>
1746 <p>This method should not be overridden directly. Specific functionality
1747 should be added in the do_release method.</p>
1750 <dl class="attribute">
1751 <dt id="nepi.execution.resource.ResourceManager.release_time">
1752 <tt class="descname">release_time</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.release_time"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.release_time" title="Permalink to this definition">¶</a></dt>
1753 <dd><p>Returns the release time of the RM as a timestamp</p>
1756 <dl class="attribute">
1757 <dt id="nepi.execution.resource.ResourceManager.reschedule_delay">
1758 <tt class="descname">reschedule_delay</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.reschedule_delay"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.reschedule_delay" title="Permalink to this definition">¶</a></dt>
1759 <dd><p>Returns default reschedule delay</p>
1763 <dt id="nepi.execution.resource.ResourceManager.reserve">
1764 <tt class="descname">reserve</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.reserve"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.reserve" title="Permalink to this definition">¶</a></dt>
1767 <dl class="attribute">
1768 <dt id="nepi.execution.resource.ResourceManager.reserved_time">
1769 <tt class="descname">reserved_time</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.reserved_time"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.reserved_time" title="Permalink to this definition">¶</a></dt>
1770 <dd><p>Returns the reserved time of the RM as a timestamp</p>
1774 <dt id="nepi.execution.resource.ResourceManager.set">
1775 <tt class="descname">set</tt><big>(</big><em>name</em>, <em>value</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.set"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.set" title="Permalink to this definition">¶</a></dt>
1776 <dd><p>Set the value of the attribute</p>
1777 <table class="docutils field-list" frame="void" rules="none">
1778 <col class="field-name" />
1779 <col class="field-body" />
1780 <tbody valign="top">
1781 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1782 <li><strong>name</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Name of the attribute</li>
1783 <li><strong>name</strong> – Value of the attribute</li>
1792 <dt id="nepi.execution.resource.ResourceManager.set_discovered">
1793 <tt class="descname">set_discovered</tt><big>(</big><em>time=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.set_discovered"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.set_discovered" title="Permalink to this definition">¶</a></dt>
1794 <dd><p>Mark ResourceManager as DISCOVERED</p>
1798 <dt id="nepi.execution.resource.ResourceManager.set_failed">
1799 <tt class="descname">set_failed</tt><big>(</big><em>time=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.set_failed"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.set_failed" title="Permalink to this definition">¶</a></dt>
1800 <dd><p>Mark ResourceManager as FAILED</p>
1803 <dl class="classmethod">
1804 <dt id="nepi.execution.resource.ResourceManager.set_global">
1805 <em class="property">classmethod </em><tt class="descname">set_global</tt><big>(</big><em>name</em>, <em>value</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.set_global"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.set_global" title="Permalink to this definition">¶</a></dt>
1806 <dd><p>Set value for a global attribute</p>
1807 <table class="docutils field-list" frame="void" rules="none">
1808 <col class="field-name" />
1809 <col class="field-body" />
1810 <tbody valign="top">
1811 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1812 <li><strong>name</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Name of the attribute</li>
1813 <li><strong>name</strong> – Value of the attribute</li>
1822 <dt id="nepi.execution.resource.ResourceManager.set_provisioned">
1823 <tt class="descname">set_provisioned</tt><big>(</big><em>time=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.set_provisioned"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.set_provisioned" title="Permalink to this definition">¶</a></dt>
1824 <dd><p>Mark ResourceManager as PROVISIONED</p>
1828 <dt id="nepi.execution.resource.ResourceManager.set_ready">
1829 <tt class="descname">set_ready</tt><big>(</big><em>time=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.set_ready"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.set_ready" title="Permalink to this definition">¶</a></dt>
1830 <dd><p>Mark ResourceManager as READY</p>
1834 <dt id="nepi.execution.resource.ResourceManager.set_released">
1835 <tt class="descname">set_released</tt><big>(</big><em>time=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.set_released"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.set_released" title="Permalink to this definition">¶</a></dt>
1836 <dd><p>Mark ResourceManager as REALEASED</p>
1840 <dt id="nepi.execution.resource.ResourceManager.set_reserved">
1841 <tt class="descname">set_reserved</tt><big>(</big><em>time=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.set_reserved"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.set_reserved" title="Permalink to this definition">¶</a></dt>
1842 <dd><p>Mark ResourceManager as RESERVED</p>
1846 <dt id="nepi.execution.resource.ResourceManager.set_started">
1847 <tt class="descname">set_started</tt><big>(</big><em>time=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.set_started"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.set_started" title="Permalink to this definition">¶</a></dt>
1848 <dd><p>Mark ResourceManager as STARTED</p>
1852 <dt id="nepi.execution.resource.ResourceManager.set_state">
1853 <tt class="descname">set_state</tt><big>(</big><em>state</em>, <em>state_time_attr</em>, <em>time=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.set_state"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.set_state" title="Permalink to this definition">¶</a></dt>
1854 <dd><p>Set the state of the RM while keeping a trace of the time</p>
1858 <dt id="nepi.execution.resource.ResourceManager.set_state_time">
1859 <tt class="descname">set_state_time</tt><big>(</big><em>state</em>, <em>state_time_attr</em>, <em>time</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.set_state_time"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.set_state_time" title="Permalink to this definition">¶</a></dt>
1860 <dd><p>Set the time for the RM state change</p>
1864 <dt id="nepi.execution.resource.ResourceManager.set_stopped">
1865 <tt class="descname">set_stopped</tt><big>(</big><em>time=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.set_stopped"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.set_stopped" title="Permalink to this definition">¶</a></dt>
1866 <dd><p>Mark ResourceManager as STOPPED</p>
1870 <dt id="nepi.execution.resource.ResourceManager.set_with_conditions">
1871 <tt class="descname">set_with_conditions</tt><big>(</big><em>name</em>, <em>value</em>, <em>group</em>, <em>state</em>, <em>time</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.set_with_conditions"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.set_with_conditions" title="Permalink to this definition">¶</a></dt>
1872 <dd><p>Set value ‘value’ on attribute with name ‘name’ when ‘time’
1873 has elapsed since all elements in ‘group’ have reached state
1874 ‘state’</p>
1875 <table class="docutils field-list" frame="void" rules="none">
1876 <col class="field-name" />
1877 <col class="field-body" />
1878 <tbody valign="top">
1879 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1880 <li><strong>name</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Name of the attribute to set</li>
1881 <li><strong>name</strong> – Value of the attribute to set</li>
1882 <li><strong>group</strong> (<em>int or list of int</em>) – Group of RMs to wait for (list of guids)</li>
1883 <li><strong>state</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – State to wait for on all RM in group. (either ‘STARTED’, ‘STOPPED’ or ‘READY’)</li>
1884 <li><strong>time</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Time to wait after ‘state’ is reached on all RMs in group. (e.g. ‘2s’)</li>
1893 <dt id="nepi.execution.resource.ResourceManager.start">
1894 <tt class="descname">start</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.start"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.start" title="Permalink to this definition">¶</a></dt>
1897 <dl class="attribute">
1898 <dt id="nepi.execution.resource.ResourceManager.start_time">
1899 <tt class="descname">start_time</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.start_time"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.start_time" title="Permalink to this definition">¶</a></dt>
1900 <dd><p>Returns the start time of the RM as a timestamp</p>
1904 <dt id="nepi.execution.resource.ResourceManager.start_with_conditions">
1905 <tt class="descname">start_with_conditions</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.start_with_conditions"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.start_with_conditions" title="Permalink to this definition">¶</a></dt>
1906 <dd><p>Starts RM when all the conditions in self.conditions for
1907 action ‘START’ are satisfied.</p>
1910 <dl class="attribute">
1911 <dt id="nepi.execution.resource.ResourceManager.state">
1912 <tt class="descname">state</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.state"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.state" title="Permalink to this definition">¶</a></dt>
1913 <dd><p>Get the current state of the RM</p>
1917 <dt id="nepi.execution.resource.ResourceManager.stop">
1918 <tt class="descname">stop</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.stop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.stop" title="Permalink to this definition">¶</a></dt>
1921 <dl class="attribute">
1922 <dt id="nepi.execution.resource.ResourceManager.stop_time">
1923 <tt class="descname">stop_time</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.stop_time"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.stop_time" title="Permalink to this definition">¶</a></dt>
1924 <dd><p>Returns the stop time of the RM as a timestamp</p>
1928 <dt id="nepi.execution.resource.ResourceManager.stop_with_conditions">
1929 <tt class="descname">stop_with_conditions</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.stop_with_conditions"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.stop_with_conditions" title="Permalink to this definition">¶</a></dt>
1930 <dd><p>Stops RM when all the conditions in self.conditions for
1931 action ‘STOP’ are satisfied.</p>
1935 <dt id="nepi.execution.resource.ResourceManager.trace">
1936 <tt class="descname">trace</tt><big>(</big><em>name</em>, <em>attr='all'</em>, <em>block=512</em>, <em>offset=0</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.trace"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.trace" title="Permalink to this definition">¶</a></dt>
1937 <dd><p>Get information on collected trace</p>
1938 <table class="docutils field-list" frame="void" rules="none">
1939 <col class="field-name" />
1940 <col class="field-body" />
1941 <tbody valign="top">
1942 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
1943 <li><strong>name</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – Name of the trace</li>
1944 <li><strong>attr</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Can be one of:
1945 - TraceAttr.ALL (complete trace content),
1946 - TraceAttr.STREAM (block in bytes to read starting at offset),
1947 - TraceAttr.PATH (full path to the trace file),
1948 - TraceAttr.SIZE (size of trace file).</li>
1949 <li><strong>block</strong> – Number of bytes to retrieve from trace, when attr is TraceAttr.STREAM</li>
1950 <li><strong>offset</strong> – Number of ‘blocks’ to skip, when attr is TraceAttr.STREAM</li>
1954 <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">str</p>
1962 <dt id="nepi.execution.resource.ResourceManager.trace_enabled">
1963 <tt class="descname">trace_enabled</tt><big>(</big><em>name</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.trace_enabled"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.trace_enabled" title="Permalink to this definition">¶</a></dt>
1964 <dd><p>Returns True if trace is enables</p>
1965 <table class="docutils field-list" frame="void" rules="none">
1966 <col class="field-name" />
1967 <col class="field-body" />
1968 <tbody valign="top">
1969 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Name of the trace</td>
1976 <dt id="nepi.execution.resource.ResourceManager.unregister_condition">
1977 <tt class="descname">unregister_condition</tt><big>(</big><em>group</em>, <em>action=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.unregister_condition"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.unregister_condition" title="Permalink to this definition">¶</a></dt>
1978 <dd><p>Removed conditions for a certain group of guids</p>
1979 <table class="docutils field-list" frame="void" rules="none">
1980 <col class="field-name" />
1981 <col class="field-body" />
1982 <tbody valign="top">
1983 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1984 <li><strong>action</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Action to restrict to condition (either ‘START’, ‘STOP’ or ‘READY’)</li>
1985 <li><strong>group</strong> (<em>int or list of int</em>) – Group of RMs to wait for (list of guids)</li>
1994 <dt id="nepi.execution.resource.ResourceManager.unregister_connection">
1995 <tt class="descname">unregister_connection</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.unregister_connection"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.unregister_connection" title="Permalink to this definition">¶</a></dt>
1996 <dd><p>Removes a registered connection to the RM identified by guid</p>
1997 <p>This method should not be overridden. Specific functionality
1998 should be added in the do_disconnect method.</p>
1999 <table class="docutils field-list" frame="void" rules="none">
2000 <col class="field-name" />
2001 <col class="field-body" />
2002 <tbody valign="top">
2003 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>guid</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – Global unique identified of the RM to connect to</td>
2010 <dt id="nepi.execution.resource.ResourceManager.valid_connection">
2011 <tt class="descname">valid_connection</tt><big>(</big><em>guid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceManager.valid_connection"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceManager.valid_connection" title="Permalink to this definition">¶</a></dt>
2012 <dd><p>Checks whether a connection with the other RM
2014 This method need to be redefined by each new Resource Manager.</p>
2015 <table class="docutils field-list" frame="void" rules="none">
2016 <col class="field-name" />
2017 <col class="field-body" />
2018 <tbody valign="top">
2019 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>guid</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – Guid of the current Resource Manager</td>
2021 <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">Boolean</td>
2030 <dt id="nepi.execution.resource.ResourceState">
2031 <em class="property">class </em><tt class="descclassname">nepi.execution.resource.</tt><tt class="descname">ResourceState</tt><a class="reference internal" href="../_modules/nepi/execution/resource.html#ResourceState"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.ResourceState" title="Permalink to this definition">¶</a></dt>
2032 <dd><p>State of a Resource Manager</p>
2033 <dl class="attribute">
2034 <dt id="nepi.execution.resource.ResourceState.DISCOVERED">
2035 <tt class="descname">DISCOVERED</tt><em class="property"> = 1</em><a class="headerlink" href="#nepi.execution.resource.ResourceState.DISCOVERED" title="Permalink to this definition">¶</a></dt>
2038 <dl class="attribute">
2039 <dt id="nepi.execution.resource.ResourceState.FAILED">
2040 <tt class="descname">FAILED</tt><em class="property"> = 7</em><a class="headerlink" href="#nepi.execution.resource.ResourceState.FAILED" title="Permalink to this definition">¶</a></dt>
2043 <dl class="attribute">
2044 <dt id="nepi.execution.resource.ResourceState.NEW">
2045 <tt class="descname">NEW</tt><em class="property"> = 0</em><a class="headerlink" href="#nepi.execution.resource.ResourceState.NEW" title="Permalink to this definition">¶</a></dt>
2048 <dl class="attribute">
2049 <dt id="nepi.execution.resource.ResourceState.PROVISIONED">
2050 <tt class="descname">PROVISIONED</tt><em class="property"> = 3</em><a class="headerlink" href="#nepi.execution.resource.ResourceState.PROVISIONED" title="Permalink to this definition">¶</a></dt>
2053 <dl class="attribute">
2054 <dt id="nepi.execution.resource.ResourceState.READY">
2055 <tt class="descname">READY</tt><em class="property"> = 4</em><a class="headerlink" href="#nepi.execution.resource.ResourceState.READY" title="Permalink to this definition">¶</a></dt>
2058 <dl class="attribute">
2059 <dt id="nepi.execution.resource.ResourceState.RELEASED">
2060 <tt class="descname">RELEASED</tt><em class="property"> = 8</em><a class="headerlink" href="#nepi.execution.resource.ResourceState.RELEASED" title="Permalink to this definition">¶</a></dt>
2063 <dl class="attribute">
2064 <dt id="nepi.execution.resource.ResourceState.RESERVED">
2065 <tt class="descname">RESERVED</tt><em class="property"> = 2</em><a class="headerlink" href="#nepi.execution.resource.ResourceState.RESERVED" title="Permalink to this definition">¶</a></dt>
2068 <dl class="attribute">
2069 <dt id="nepi.execution.resource.ResourceState.STARTED">
2070 <tt class="descname">STARTED</tt><em class="property"> = 5</em><a class="headerlink" href="#nepi.execution.resource.ResourceState.STARTED" title="Permalink to this definition">¶</a></dt>
2073 <dl class="attribute">
2074 <dt id="nepi.execution.resource.ResourceState.STOPPED">
2075 <tt class="descname">STOPPED</tt><em class="property"> = 6</em><a class="headerlink" href="#nepi.execution.resource.ResourceState.STOPPED" title="Permalink to this definition">¶</a></dt>
2080 <dl class="function">
2081 <dt id="nepi.execution.resource.clsinit">
2082 <tt class="descclassname">nepi.execution.resource.</tt><tt class="descname">clsinit</tt><big>(</big><em>cls</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#clsinit"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.clsinit" title="Permalink to this definition">¶</a></dt>
2083 <dd><p>Initializes template information (i.e. attributes and traces)
2084 on classes derived from the ResourceManager class.</p>
2085 <p>It is used as a decorator in the class declaration as follows:</p>
2087 <div><p>@clsinit
2088 class MyResourceManager(ResourceManager):</p>
2090 <div>...</div></blockquote>
2094 <dl class="function">
2095 <dt id="nepi.execution.resource.clsinit_copy">
2096 <tt class="descclassname">nepi.execution.resource.</tt><tt class="descname">clsinit_copy</tt><big>(</big><em>cls</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#clsinit_copy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.clsinit_copy" title="Permalink to this definition">¶</a></dt>
2097 <dd><p>Initializes template information (i.e. attributes and traces)
2098 on classes derived from the ResourceManager class.
2099 It differs from the clsinit method in that it forces inheritance
2100 of attributes and traces from the parent class.</p>
2101 <p>It is used as a decorator in the class declaration as follows:</p>
2103 <div><p>@clsinit
2104 class MyResourceManager(ResourceManager):</p>
2106 <div>...</div></blockquote>
2108 <p>clsinit_copy should be prefered to clsinit when creating new
2109 ResourceManager child classes.</p>
2112 <dl class="function">
2113 <dt id="nepi.execution.resource.failtrap">
2114 <tt class="descclassname">nepi.execution.resource.</tt><tt class="descname">failtrap</tt><big>(</big><em>func</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#failtrap"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.failtrap" title="Permalink to this definition">¶</a></dt>
2115 <dd><p>Decorator function for instance methods that should set the
2116 RM state to FAILED when an error is raised. The methods that must be
2117 decorated are: discover, reserved, provision, deploy, start, stop.</p>
2120 <dl class="function">
2121 <dt id="nepi.execution.resource.find_types">
2122 <tt class="descclassname">nepi.execution.resource.</tt><tt class="descname">find_types</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#find_types"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.find_types" title="Permalink to this definition">¶</a></dt>
2123 <dd><p>Look into the different folders to find all the
2124 availables Resources Managers</p>
2127 <dl class="function">
2128 <dt id="nepi.execution.resource.populate_factory">
2129 <tt class="descclassname">nepi.execution.resource.</tt><tt class="descname">populate_factory</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/resource.html#populate_factory"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.resource.populate_factory" title="Permalink to this definition">¶</a></dt>
2130 <dd><p>Find and rgister all available RMs</p>
2134 <div class="section" id="module-nepi.execution.runner">
2135 <span id="nepi-execution-runner-module"></span><h2>nepi.execution.runner module<a class="headerlink" href="#module-nepi.execution.runner" title="Permalink to this headline">¶</a></h2>
2137 <dt id="nepi.execution.runner.ExperimentRunner">
2138 <em class="property">class </em><tt class="descclassname">nepi.execution.runner.</tt><tt class="descname">ExperimentRunner</tt><a class="reference internal" href="../_modules/nepi/execution/runner.html#ExperimentRunner"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.runner.ExperimentRunner" title="Permalink to this definition">¶</a></dt>
2139 <dd><p>Bases: <a class="reference external" href="http://docs.python.org/library/functions.html#object" title="(in Python v2.7)"><tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></a></p>
2140 <p>The ExperimentRunner entity is responsible of
2141 re-running an experiment described by an ExperimentController
2144 <dt id="nepi.execution.runner.ExperimentRunner.evaluate_normal_convergence">
2145 <tt class="descname">evaluate_normal_convergence</tt><big>(</big><em>ec</em>, <em>run</em>, <em>metrics</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/runner.html#ExperimentRunner.evaluate_normal_convergence"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.runner.ExperimentRunner.evaluate_normal_convergence" title="Permalink to this definition">¶</a></dt>
2146 <dd><p>Returns True when the confidence interval of the sample mean is
2147 less than 5% of the mean value, for a 95% confidence level,
2148 assuming normal distribution of the data</p>
2152 <dt id="nepi.execution.runner.ExperimentRunner.run">
2153 <tt class="descname">run</tt><big>(</big><em>ec</em>, <em>min_runs=1</em>, <em>max_runs=-1</em>, <em>wait_time=0</em>, <em>wait_guids=[]</em>, <em>compute_metric_callback=None</em>, <em>evaluate_convergence_callback=None</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/runner.html#ExperimentRunner.run"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.runner.ExperimentRunner.run" title="Permalink to this definition">¶</a></dt>
2154 <dd><p>Run a same experiment independently multiple times, until the
2155 evaluate_convergence_callback function returns True</p>
2156 <table class="docutils field-list" frame="void" rules="none">
2157 <col class="field-name" />
2158 <col class="field-body" />
2159 <tbody valign="top">
2160 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
2161 <li><strong>ec</strong> (<em>ExperimentController</em>) – Description of experiment to replicate.
2162 The runner takes care of deploying the EC, so ec.deploy()
2163 must not be invoked directly before or after invoking
2165 <li><strong>min_runs</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – Minimum number of times the experiment must be
2167 <li><strong>max_runs</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – Maximum number of times the experiment can be
2169 <li><strong>wait_time</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – Time to wait in seconds on each run between invoking
2170 ec.deploy() and ec.release().</li>
2171 <li><strong>wait_guids</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#list" title="(in Python v2.7)"><em>list</em></a>) – List of guids wait for finalization on each run.
2172 This list is passed to ec.wait_finished()</li>
2173 <li><strong>compute_metric_callback</strong> (<em>function</em>) – <p>User defined function invoked after
2174 each experiment run to compute a metric. The metric is usually
2175 a network measurement obtained from the data collected
2176 during experiment execution.
2177 The function is invoked passing the ec and the run number as arguments.
2178 It must return the value for the computed metric(s) (usually a single
2179 numerical value, but it can be several).</p>
2181 <div>metric = compute_metric_callback(ec, run)</div></blockquote>
2183 <li><strong>evaluate_convergence_callback</strong> (<em>function</em>) – <p>User defined function invoked after
2184 computing the metric on each run, to evaluate the experiment was
2185 run enough times. It takes the list of cumulated metrics produced by
2186 the compute_metric_callback up to the current run, and decided
2187 whether the metrics have statistically converged to a meaningful value
2188 or not. It must return either True or False.</p>
2190 <div>stop = evaluate_convergence_callback(ec, run, metrics)</div></blockquote>
2191 <p>If stop is True, then the runner will exit.</p>
2201 <dt id="nepi.execution.runner.ExperimentRunner.run_experiment">
2202 <tt class="descname">run_experiment</tt><big>(</big><em>filepath</em>, <em>wait_time</em>, <em>wait_guids</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/runner.html#ExperimentRunner.run_experiment"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.runner.ExperimentRunner.run_experiment" title="Permalink to this definition">¶</a></dt>
2203 <dd><p>Run an experiment based on the description stored
2210 <div class="section" id="module-nepi.execution.scheduler">
2211 <span id="nepi-execution-scheduler-module"></span><h2>nepi.execution.scheduler module<a class="headerlink" href="#module-nepi.execution.scheduler" title="Permalink to this headline">¶</a></h2>
2213 <dt id="nepi.execution.scheduler.HeapScheduler">
2214 <em class="property">class </em><tt class="descclassname">nepi.execution.scheduler.</tt><tt class="descname">HeapScheduler</tt><a class="reference internal" href="../_modules/nepi/execution/scheduler.html#HeapScheduler"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.scheduler.HeapScheduler" title="Permalink to this definition">¶</a></dt>
2215 <dd><p>Bases: <a class="reference external" href="http://docs.python.org/library/functions.html#object" title="(in Python v2.7)"><tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></a></p>
2216 <p>Create a Heap Scheduler</p>
2217 <div class="admonition note">
2218 <p class="first admonition-title">Note</p>
2219 <p class="last">This class is thread safe.
2220 All calls to C Extensions are made atomic by the GIL in the CPython implementation.
2221 heapq.heappush, heapq.heappop, and list access are therefore thread-safe.</p>
2224 <dt id="nepi.execution.scheduler.HeapScheduler.next">
2225 <tt class="descname">next</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/nepi/execution/scheduler.html#HeapScheduler.next"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.scheduler.HeapScheduler.next" title="Permalink to this definition">¶</a></dt>
2226 <dd><p>Get the next task in the queue by timestamp and arrival order</p>
2229 <dl class="attribute">
2230 <dt id="nepi.execution.scheduler.HeapScheduler.pending">
2231 <tt class="descname">pending</tt><a class="reference internal" href="../_modules/nepi/execution/scheduler.html#HeapScheduler.pending"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.scheduler.HeapScheduler.pending" title="Permalink to this definition">¶</a></dt>
2232 <dd><p>Returns the list of pending task ids</p>
2236 <dt id="nepi.execution.scheduler.HeapScheduler.remove">
2237 <tt class="descname">remove</tt><big>(</big><em>tid</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/scheduler.html#HeapScheduler.remove"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.scheduler.HeapScheduler.remove" title="Permalink to this definition">¶</a></dt>
2238 <dd><p>Remove a task form the queue</p>
2239 <table class="docutils field-list" frame="void" rules="none">
2240 <col class="field-name" />
2241 <col class="field-body" />
2242 <tbody valign="top">
2243 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>tid</strong> (<a class="reference external" href="http://docs.python.org/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – Id of the task to be removed</td>
2250 <dt id="nepi.execution.scheduler.HeapScheduler.schedule">
2251 <tt class="descname">schedule</tt><big>(</big><em>task</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/scheduler.html#HeapScheduler.schedule"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.scheduler.HeapScheduler.schedule" title="Permalink to this definition">¶</a></dt>
2252 <dd><p>Add a task to the queue ordered by task.timestamp and arrival order</p>
2253 <table class="docutils field-list" frame="void" rules="none">
2254 <col class="field-name" />
2255 <col class="field-body" />
2256 <tbody valign="top">
2257 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>task</strong> (<em>task</em>) – task to schedule</td>
2266 <dt id="nepi.execution.scheduler.Task">
2267 <em class="property">class </em><tt class="descclassname">nepi.execution.scheduler.</tt><tt class="descname">Task</tt><big>(</big><em>timestamp</em>, <em>callback</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/scheduler.html#Task"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.scheduler.Task" title="Permalink to this definition">¶</a></dt>
2268 <dd><p>Bases: <a class="reference external" href="http://docs.python.org/library/functions.html#object" title="(in Python v2.7)"><tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></a></p>
2269 <p>A Task represents an operation to be executed by the
2270 ExperimentController scheduler</p>
2274 <dt id="nepi.execution.scheduler.TaskStatus">
2275 <em class="property">class </em><tt class="descclassname">nepi.execution.scheduler.</tt><tt class="descname">TaskStatus</tt><a class="reference internal" href="../_modules/nepi/execution/scheduler.html#TaskStatus"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.scheduler.TaskStatus" title="Permalink to this definition">¶</a></dt>
2276 <dd><p>Execution state of the Task</p>
2277 <dl class="attribute">
2278 <dt id="nepi.execution.scheduler.TaskStatus.DONE">
2279 <tt class="descname">DONE</tt><em class="property"> = 1</em><a class="headerlink" href="#nepi.execution.scheduler.TaskStatus.DONE" title="Permalink to this definition">¶</a></dt>
2282 <dl class="attribute">
2283 <dt id="nepi.execution.scheduler.TaskStatus.ERROR">
2284 <tt class="descname">ERROR</tt><em class="property"> = 2</em><a class="headerlink" href="#nepi.execution.scheduler.TaskStatus.ERROR" title="Permalink to this definition">¶</a></dt>
2287 <dl class="attribute">
2288 <dt id="nepi.execution.scheduler.TaskStatus.NEW">
2289 <tt class="descname">NEW</tt><em class="property"> = 0</em><a class="headerlink" href="#nepi.execution.scheduler.TaskStatus.NEW" title="Permalink to this definition">¶</a></dt>
2295 <div class="section" id="module-nepi.execution.tags">
2296 <span id="nepi-execution-tags-module"></span><h2>nepi.execution.tags module<a class="headerlink" href="#module-nepi.execution.tags" title="Permalink to this headline">¶</a></h2>
2298 <div class="section" id="module-nepi.execution.trace">
2299 <span id="nepi-execution-trace-module"></span><h2>nepi.execution.trace module<a class="headerlink" href="#module-nepi.execution.trace" title="Permalink to this headline">¶</a></h2>
2301 <dt id="nepi.execution.trace.Trace">
2302 <em class="property">class </em><tt class="descclassname">nepi.execution.trace.</tt><tt class="descname">Trace</tt><big>(</big><em>name</em>, <em>help</em>, <em>enabled=False</em><big>)</big><a class="reference internal" href="../_modules/nepi/execution/trace.html#Trace"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.trace.Trace" title="Permalink to this definition">¶</a></dt>
2303 <dd><p>Bases: <a class="reference external" href="http://docs.python.org/library/functions.html#object" title="(in Python v2.7)"><tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></a></p>
2304 <p>A Trace represents information about a Resource that can
2306 <dl class="attribute">
2307 <dt id="nepi.execution.trace.Trace.help">
2308 <tt class="descname">help</tt><a class="reference internal" href="../_modules/nepi/execution/trace.html#Trace.help"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.trace.Trace.help" title="Permalink to this definition">¶</a></dt>
2309 <dd><p>Returns the help of the trace</p>
2312 <dl class="attribute">
2313 <dt id="nepi.execution.trace.Trace.name">
2314 <tt class="descname">name</tt><a class="reference internal" href="../_modules/nepi/execution/trace.html#Trace.name"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.trace.Trace.name" title="Permalink to this definition">¶</a></dt>
2315 <dd><p>Returns the name of the trace</p>
2321 <dt id="nepi.execution.trace.TraceAttr">
2322 <em class="property">class </em><tt class="descclassname">nepi.execution.trace.</tt><tt class="descname">TraceAttr</tt><a class="reference internal" href="../_modules/nepi/execution/trace.html#TraceAttr"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#nepi.execution.trace.TraceAttr" title="Permalink to this definition">¶</a></dt>
2323 <dd><p>A Trace attribute defines information about a Trace that can
2325 <dl class="attribute">
2326 <dt id="nepi.execution.trace.TraceAttr.ALL">
2327 <tt class="descname">ALL</tt><em class="property"> = 'all'</em><a class="headerlink" href="#nepi.execution.trace.TraceAttr.ALL" title="Permalink to this definition">¶</a></dt>
2330 <dl class="attribute">
2331 <dt id="nepi.execution.trace.TraceAttr.PATH">
2332 <tt class="descname">PATH</tt><em class="property"> = 'path'</em><a class="headerlink" href="#nepi.execution.trace.TraceAttr.PATH" title="Permalink to this definition">¶</a></dt>
2335 <dl class="attribute">
2336 <dt id="nepi.execution.trace.TraceAttr.SIZE">
2337 <tt class="descname">SIZE</tt><em class="property"> = 'size'</em><a class="headerlink" href="#nepi.execution.trace.TraceAttr.SIZE" title="Permalink to this definition">¶</a></dt>
2340 <dl class="attribute">
2341 <dt id="nepi.execution.trace.TraceAttr.STREAM">
2342 <tt class="descname">STREAM</tt><em class="property"> = 'stream'</em><a class="headerlink" href="#nepi.execution.trace.TraceAttr.STREAM" title="Permalink to this definition">¶</a></dt>
2348 <div class="section" id="module-nepi.execution">
2349 <span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-nepi.execution" title="Permalink to this headline">¶</a></h2>
2357 <div class="clearer"></div>
2359 <div class="related">
2362 <li class="right" style="margin-right: 10px">
2363 <a href="../genindex.html" title="General Index"
2366 <a href="../py-modindex.html" title="Python Module Index"
2368 <li><a href="../index.html">NEPI 3.2 documentation</a> »</li>
2371 <div class="footer">
2372 © Copyright 2014, Alina Quereilhac, Lucia Guevgeozian Odizzio, Julien Tribino.
2373 Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.