Author: everett
Date: Mon Jan  6 19:43:47 2014
New Revision: 1555995

URL: http://svn.apache.org/r1555995
Log:
deploy jclouds site content

Modified:
    jclouds/site-content/documentation/quickstart/rackspace/index.html

Modified: jclouds/site-content/documentation/quickstart/rackspace/index.html
URL: 
http://svn.apache.org/viewvc/jclouds/site-content/documentation/quickstart/rackspace/index.html?rev=1555995&r1=1555994&r2=1555995&view=diff
==============================================================================
--- jclouds/site-content/documentation/quickstart/rackspace/index.html 
(original)
+++ jclouds/site-content/documentation/quickstart/rackspace/index.html Mon Jan  
6 19:43:47 2014
@@ -62,6 +62,7 @@
 <li><a href="#loadbalancers">Working with Cloud Load Balancers</a></li>
 <li><a href="#databases">Working with Cloud Databases</a></li>
 <li><a href="#autoscale">Working with Cloud Auto Scale</a></li>
+<li><a href="#queues">Working with Cloud Queues</a></li>
 <li><a href="#next">Next Steps</a></li>
 <li><a href="#providers">Rackspace Cloud Providers</a></li>
 <li><a href="#support">Support and Feedback</a></li>
@@ -583,6 +584,79 @@ java -classpath ".:lib/*" org.jclouds.ex
 
 <p>In addition to the CreatePolicy example, by going through the Auto Scale 
example code, you will learn to create and execute webhooks, and delete and 
modify groups, policies, and webhooks. You can find the examples documentation 
<a 
href="https://github.com/jclouds/jclouds-examples/tree/master/rackspace";>here</a>.</p>
 
+<h2><a id="queues"></a>Working with Cloud Queues</h2>
+
+<h3><a id="queues-intro"></a>Introduction</h3>
+
+<p><a href="http://www.rackspace.com/cloud/queues/";>Cloud Queues</a> easily 
connect distributed applications without installing complex software. Create 
unlimited queues quickly and send unlimited messages.</p>
+
+<h3><a id="queues-apis"></a>APIs</h3>
+
+<p>Cloud Queues works with the OpenStack layer in jclouds that is used to 
access features common to all OpenStack Marconi queuing systems.</p>
+
+<ol>
+<li>The OpenStack API for Cloud Queues is the 
org.jclouds.openstack.marconi.v1.MarconiApi. All other APIs for working with 
queues are accessible via the MarconiApi.</li>
+<li>You can find these APIs in the latest <a 
href="http://javadocs-labs-openstack.jclouds.cloudbees.net";>Javadoc</a>.</li>
+</ol>
+
+
+<h3><a id="queues-source"></a>The Source Code</h3>
+
+<ol>
+<li>Create the directory hierarchy org/jclouds/examples/rackspace/cloudqueues/ 
in your jclouds directory.</li>
+<li>Create Java source files called ProducerConsumer.java and Constants.java 
in the directory above.</li>
+<li>You should now have a directory with the following structure:
+
+<ul>
+<li><code>jclouds/</code>
+
+<ul>
+<li><code>pom.xml</code></li>
+<li><code>lib/</code>
+
+<ul>
+<li><code>*.jar</code></li>
+</ul>
+</li>
+<li><code>org/jclouds/examples/rackspace/cloudqueues/</code>
+
+<ul>
+<li><code>ProducerConsumer.java</code></li>
+<li><code>Constants.java</code></li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</li>
+<li>Open ProducerConsumer.java for editing.</li>
+<li>Go to the example code <a 
href="https://github.com/jclouds/jclouds-examples/blob/master/rackspace/src/main/java/org/jclouds/examples/rackspace/cloudqueues/ProducerConsumer.java";>ProducerConsumer.java</a>,
 read it over, and copy the code into your file.</li>
+<li>Open Constants.java for editing.</li>
+<li>Go to the example code <a 
href="https://github.com/jclouds/jclouds-examples/blob/master/rackspace/src/main/java/org/jclouds/examples/rackspace/cloudqueues/Constants.java";>Constants.java</a>,
 read it over, and copy the code into your file.</li>
+</ol>
+
+
+<h3><a id="queues-compile"></a>Compile and Run</h3>
+
+<pre><code>javac -classpath ".:lib/*" 
org/jclouds/examples/rackspace/cloudqueues/ProducerConsumer.java
+
+java -classpath ".:lib/*" 
org.jclouds.examples.rackspace.cloudqueues.ProducerConsumer myUsername myApiKey
+
+Producer Consumer
+  Producer 1 Message 1:0
+  Producer 1 Message 1:1
+  Consumer 1 Message 1:0 (Queue This Way)
+  Consumer 2 Message 1:1 (Queue This Way)
+  Producer 1 Message 1:2
+  Consumer 1 Message 1:2 (Queue This Way)
+  Producer 1 Message 1:3
+  Consumer 1 Message 1:3 (Queue This Way)
+  Producer 1 Message 1:4
+  Producer 1 Message 1:5
+  Consumer 2 Message 1:4 (Queue This Way)
+  ...
+</code></pre>
+
 <h2><a id="jee"></a>jclouds in a Managed Container</h2>
 
 <p>Setting up jclouds to work in a managed container is easy. You simply need 
to ensure that jclouds won't spawn any of its own threads. You can do this by 
using the ExecutorServiceModule when building your Context.</p>


Reply via email to