doc/rdoc/classes/PhusionPassenger/SpawnManager.html in passenger-2.2.5 vs doc/rdoc/classes/PhusionPassenger/SpawnManager.html in passenger-2.2.6
- old
+ new
@@ -83,13 +83,13 @@
fascade for the rest of the spawn manager system.
</p>
<p>
<b>Note</b>: <a href="SpawnManager.html">SpawnManager</a> may only be
started synchronously with <a
-href="AbstractServer.html#M000135">AbstractServer#start_synchronously</a>.
+href="AbstractServer.html#M000121">AbstractServer#start_synchronously</a>.
Starting asynchronously has not been tested. Don‘t forget to call <a
-href="SpawnManager.html#M000123">cleanup</a> after the server‘s main
+href="SpawnManager.html#M000153">cleanup</a> after the server‘s main
loop has finished.
</p>
<h2>Ruby on Rails optimizations</h2>
<p>
Spawning a Ruby on Rails application is usually slow. But <a
@@ -114,14 +114,14 @@
<div class="sectiontitle">Methods</div>
<ul>
- <li><a href="#M000123">cleanup</a></li>
- <li><a href="#M000120">new</a></li>
- <li><a href="#M000122">reload</a></li>
- <li><a href="#M000121">spawn_application</a></li>
+ <li><a href="#M000153">cleanup</a></li>
+ <li><a href="#M000150">new</a></li>
+ <li><a href="#M000152">reload</a></li>
+ <li><a href="#M000151">spawn_application</a></li>
</ul>
<div class="sectiontitle">Included Modules</div>
<ul>
<li><a href="Utils.html">Utils</a></li>
@@ -132,15 +132,15 @@
<div class="sectiontitle">Public Class methods</div>
<div class="method">
<div class="title">
- <a name="M000120"></a><b>new</b>()
+ <a name="M000150"></a><b>new</b>()
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000120_source')" id="l_M000120_source">show source</a> ]</p>
- <div id="M000120_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000150_source')" id="l_M000150_source">show source</a> ]</p>
+ <div id="M000150_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/phusion_passenger/spawn_manager.rb, line 61</span>
61: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
62: <span class="ruby-keyword kw">super</span>()
63: <span class="ruby-ivar">@spawners</span> = <span class="ruby-constant">AbstractServerCollection</span>.<span class="ruby-identifier">new</span>
@@ -178,21 +178,21 @@
</div>
</div>
<div class="sectiontitle">Public Instance methods</div>
<div class="method">
<div class="title">
- <a name="M000123"></a><b>cleanup</b>()
+ <a name="M000153"></a><b>cleanup</b>()
</div>
<div class="description">
<p>
Cleanup resources. Should be called when this <a
href="SpawnManager.html">SpawnManager</a> is no longer needed.
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000123_source')" id="l_M000123_source">show source</a> ]</p>
- <div id="M000123_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000153_source')" id="l_M000153_source">show source</a> ]</p>
+ <div id="M000153_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/phusion_passenger/spawn_manager.rb, line 215</span>
215: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cleanup</span>
216: <span class="ruby-ivar">@spawners</span>.<span class="ruby-identifier">cleanup</span>
217: <span class="ruby-keyword kw">end</span>
@@ -200,34 +200,34 @@
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000122"></a><b>reload</b>(app_root = nil)
+ <a name="M000152"></a><b>reload</b>(app_root = nil)
</div>
<div class="description">
<p>
Remove the cached application instances at the given application root. If
nil is specified as application root, then all cached application instances
will be removed, no matter the application root.
</p>
<p>
<b>Long description:</b> <a href="Application.html">Application</a> code
might be cached in memory. But once it a while, it will be necessary to <a
-href="SpawnManager.html#M000122">reload</a> the code for an application,
-such as after deploying a <a href="SpawnManager.html#M000120">new</a>
+href="SpawnManager.html#M000152">reload</a> the code for an application,
+such as after deploying a <a href="SpawnManager.html#M000150">new</a>
version of the application. This method makes sure that any cached
application code is removed, so that the next time an application instance
is spawned, the application code will be freshly loaded into memory.
</p>
<p>
Raises AbstractServer::SpawnError if something went wrong.
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000122_source')" id="l_M000122_source">show source</a> ]</p>
- <div id="M000122_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000152_source')" id="l_M000152_source">show source</a> ]</p>
+ <div id="M000152_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/phusion_passenger/spawn_manager.rb, line 188</span>
188: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reload</span>(<span class="ruby-identifier">app_root</span> = <span class="ruby-keyword kw">nil</span>)
189: <span class="ruby-ivar">@spawners</span>.<span class="ruby-identifier">synchronize</span> <span class="ruby-keyword kw">do</span>
190: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">app_root</span>
@@ -257,11 +257,11 @@
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000121"></a><b>spawn_application</b>(options)
+ <a name="M000151"></a><b>spawn_application</b>(options)
</div>
<div class="description">
<p>
Spawn an application with the given spawn options. When successful, an <a
href="Application.html">Application</a> object will be returned, which
@@ -286,16 +286,16 @@
implies that, if you‘ve changed the application‘s code, you
must do one of these things:
<ul>
<li>Restart this <a href="SpawnManager.html">SpawnManager</a> by calling <a
-href="AbstractServer.html#M000136">AbstractServer#stop</a>, then <a
-href="AbstractServer.html#M000134">AbstractServer#start</a>.
+href="AbstractServer.html#M000122">AbstractServer#stop</a>, then <a
+href="AbstractServer.html#M000120">AbstractServer#start</a>.
</li>
<li>Reload the application by calling <a
-href="SpawnManager.html#M000122">reload</a> with the correct app_root
+href="SpawnManager.html#M000152">reload</a> with the correct app_root
argument.
</li>
</ul>
<p>
@@ -352,11 +352,11 @@
</li>
</ul>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000121_source')" id="l_M000121_source">show source</a> ]</p>
- <div id="M000121_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000151_source')" id="l_M000151_source">show source</a> ]</p>
+ <div id="M000151_source" class="dyn-source">
<pre>
<span class="ruby-comment cmt"># File lib/phusion_passenger/spawn_manager.rb, line 142</span>
142: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">spawn_application</span>(<span class="ruby-identifier">options</span>)
143: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">options</span>[<span class="ruby-value str">"app_root"</span>]
144: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"The 'app_root' option must be given."</span>
\ No newline at end of file