You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by sv...@apache.org on 2017/07/27 17:33:20 UTC

svn commit: r1803213 - /jclouds/site-content/start/compute/index.html

Author: svet
Date: Thu Jul 27 17:33:19 2017
New Revision: 1803213

URL: http://svn.apache.org/viewvc?rev=1803213&view=rev
Log:
deploy jclouds site content

Modified:
    jclouds/site-content/start/compute/index.html

Modified: jclouds/site-content/start/compute/index.html
URL: http://svn.apache.org/viewvc/jclouds/site-content/start/compute/index.html?rev=1803213&r1=1803212&r2=1803213&view=diff
==============================================================================
--- jclouds/site-content/start/compute/index.html (original)
+++ jclouds/site-content/start/compute/index.html Thu Jul 27 17:33:19 2017
@@ -758,6 +758,23 @@ without having to resort to OS-specific
  to deal with the gory details of various OS flavors.
 To see the commands that will be executed, print the result of <code>Statement.render(OsFamily.UNIX)</code>, for example.</p>
 
+<h3>Sharing the credential store between ComputeService instances</h3>
+
+<p>By default there's a separate credential store per ComputeService instance. To change that and share the
+same credential store between instances create your ComputeService as follows:</p>
+
+<div class="highlight"><pre><code class="java"><span class="kd">public</span> <span class="kd">static</span> <span class="kd">final</span> <span class="n">Map</span><span class="o">&lt;</span><span class="n">String</span><span class="o">,</span> <span class="n">ByteSource</span><span class="o">&gt;</span> <span class="n">SHARED_CREDENTIAL_STORE</span> <span class="o">=</span> <span class="k">new</span> <span class="n">ConcurrentHashMap</span><span class="o">&lt;</span><span class="n">String</span><span class="o">,</span> <span class="n">ByteSource</span><span class="o">&gt;();</span>
+<span class="o">...</span>
+<span class="n">Module</span> <span class="n">sharedCredStore</span> <span class="o">=</span> <span class="k">new</span> <span class="n">CredentialStoreModule</span><span class="o">(</span><span class="n">SHARED_CREDENTIAL_STORE</span><span class="o">);</span>
+
+<span class="n">ContextBuilder</span><span class="o">.</span><span class="na">newBuilder</span><span class="o">(</span><span class="s">&quot;provider&quot;</span><span class="o">)</span>
+  <span class="o">.</span><span class="na">modules</span><span class="o">(</span><span class="n">ImmutableSet</span><span class="o">.</span><span class="na">of</span><span class="o">(</span><span class="n">sharedCredStore</span><span class="o">,</span> <span class="o">...))</span>
+<span class="o">...</span>
+</code></pre></div>
+
+
+<p><em>Note</em>: This behaviour changed in jclouds 2.1.0; in older versions, the default behaviour was to share the credential store across instances.</p>
+
             <div class="row clearfix">
                 <div id="footer" class="col-md-12 column">
                     <div id="footer">