Author: phunt
Date: Wed Oct  8 11:17:52 2008
New Revision: 702950

URL: http://svn.apache.org/viewvc?rev=702950&view=rev
Log:
ZOOKEEPER-179. Programmer's Guide "Basic Operations" section is missing content

Modified:
    hadoop/zookeeper/trunk/CHANGES.txt
    hadoop/zookeeper/trunk/docs/zookeeperProgrammers.html
    hadoop/zookeeper/trunk/docs/zookeeperProgrammers.pdf
    
hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml

Modified: hadoop/zookeeper/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/CHANGES.txt?rev=702950&r1=702949&r2=702950&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/CHANGES.txt (original)
+++ hadoop/zookeeper/trunk/CHANGES.txt Wed Oct  8 11:17:52 2008
@@ -20,7 +20,11 @@
 
   BUGFIXES: 
 
+  ZOOKEEPER-179. Programmer's Guide "Basic Operations" section is missing 
+  content (robbie via phunt)
+
   ZOOKEEPER-159. Cover two corner cases of leader election
+  (Flavio Paiva Junqueira via phunt)
 
   ZOOKEEPER-156. update programmer guide with acl details from old wiki page
   (phunt)

Modified: hadoop/zookeeper/trunk/docs/zookeeperProgrammers.html
URL: 
http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/docs/zookeeperProgrammers.html?rev=702950&r1=702949&r2=702950&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/docs/zookeeperProgrammers.html (original)
+++ hadoop/zookeeper/trunk/docs/zookeeperProgrammers.html Wed Oct  8 11:17:52 
2008
@@ -246,6 +246,23 @@
 </li>
 <li>
 <a href="#ch_guideToZkOperations">Building Blocks: A Guide to ZooKeeper 
Operations</a>
+<ul class="minitoc">
+<li>
+<a href="#sc_connectingToZk">Connecting to ZooKeeper</a>
+</li>
+<li>
+<a href="#sc_readOps">Read Operations</a>
+</li>
+<li>
+<a href="#sc_writeOps">Write Operations</a>
+</li>
+<li>
+<a href="#sc_handlingWatches">Handling Watches</a>
+</li>
+<li>
+<a href="#sc_miscOps">Miscelleaneous ZooKeeper Operations</a>
+</li>
+</ul>
 </li>
 <li>
 <a href="#ch_programStructureWithExample">Program Structure, with Simple 
Example</a>
@@ -396,8 +413,9 @@
       
 <li>
         
-<p>The following characters are not allowed: \ud800 -uF8FFF, \uFFF0-uFFFF, 
\uXFFFE -
-        \uXFFFF (where X is an digit 1 - E), \uF0000 - \uFFFFF.</p>
+<p>The following characters are not allowed: \ud800 -uF8FFF,
+        \uFFF0-uFFFF, \uXFFFE - \uXFFFF (where X is a digit 1 - E), \uF0000 -
+        \uFFFFF.</p>
       
 </li>
 
@@ -405,7 +423,7 @@
 <li>
         
 <p>The "." character can be used as part of another name, but "."
-        and ".." cannot alone make up the whole name of a path location,
+        and ".." cannot alone be used to indicate a node along a path,
         because ZooKeeper doesn't use relative paths. The following would be
         invalid: "/a/b/./c" or "/a/b/../c".</p>
       
@@ -1238,8 +1256,7 @@
               atomic, synchronization across its quorum, but ZooKeeper
               primitives can be used to construct higher level functions that
               provide complete client synchronization. (For more information,
-              see the <a href="recipes.html#sc_recipes_Locks">Locks</a>
-              <em>[tbd:...]</em> in <a href="recipes.html">Zookeeper 
Recipes</a>.
+              see the <a href="recipes.html">Zookeeper Recipes</a>.
               <em>[tbd:..]</em>).</p>
 </dd>
         
@@ -1250,12 +1267,12 @@
 </div>
 
   
-<a name="N1048E"></a><a name="ch_bindings"></a>
+<a name="N10487"></a><a name="ch_bindings"></a>
 <h2 class="h3">Bindings</h2>
 <div class="section">
 <p>The ZooKeeper client libraries come in two languages: Java and C.
     The following sections describe these.</p>
-<a name="N10497"></a><a name="Java+Binding"></a>
+<a name="N10490"></a><a name="Java+Binding"></a>
 <h3 class="h4">Java Binding</h3>
 <p>There are two packages that make up the ZooKeeper Java binding:
       <strong>org.apache.zookeeper</strong> and 
<strong>org.apache.zookeeper.data</strong>. The rest of the
@@ -1322,7 +1339,7 @@
       (SESSION_EXPIRED and AUTH_FAILED), the ZooKeeper object becomes invalid,
       the two threads shut down, and any further ZooKeeper calls throw
       errors.</p>
-<a name="N104E0"></a><a name="C+Binding"></a>
+<a name="N104D9"></a><a name="C+Binding"></a>
 <h3 class="h4">C Binding</h3>
 <p>The C binding has a single-threaded and multi-threaded library.
       The multi-threaded library is easiest to use and is most similar to the
@@ -1339,7 +1356,7 @@
       (i.e. FreeBSD 4.x). In all other cases, application developers should
       link with zookeeper_mt, as it includes support for both Sync and Async
       API.</p>
-<a name="N104EF"></a><a name="Installation"></a>
+<a name="N104E8"></a><a name="Installation"></a>
 <h4>Installation</h4>
 <p>If you're building the client from a check-out from the Apache
         repository, follow the steps outlined below. If you're building from a
@@ -1470,7 +1487,7 @@
 </li>
         
 </ol>
-<a name="N10598"></a><a name="Using+the+Client"></a>
+<a name="N10591"></a><a name="Using+the+Client"></a>
 <h4>Using the Client</h4>
 <p>You can test your client by running a zookeeper server (see
         instructions on the project wiki page on how to run it) and connecting
@@ -1523,79 +1540,43 @@
 </div>
 
    
-<a name="N105D7"></a><a name="ch_guideToZkOperations"></a>
+<a name="N105D0"></a><a name="ch_guideToZkOperations"></a>
 <h2 class="h3">Building Blocks: A Guide to ZooKeeper Operations</h2>
 <div class="section">
-<p>
-<em>[tbd: This is a new section. The below
-    is just placeholder. Eventually, a subsection on each of those operations, 
with a little
-    bit of illustrative code for each op.] </em>
-</p>
-<p>One of the design goals of ZooKeeper is provide a very simple
-    programming interface. As a result, it supports only these
-    operations:</p>
-<dl>
-      
-<dt>
-<term>create</term>
-</dt>
-<dd>
-<p>creates a node at a location in the tree</p>
-</dd>
-
-      
-<dt>
-<term>delete</term>
-</dt>
-<dd>
-<p>deletes a node</p>
-</dd>
-
-      
-<dt>
-<term>exists</term>
-</dt>
-<dd>
-<p>tests if a node exists at a location</p>
-</dd>
-
-      
-<dt>
-<term>get data</term>
-</dt>
-<dd>
-<p>reads the data from a node</p>
-</dd>
-
-      
-<dt>
-<term>set data</term>
-</dt>
-<dd>
-<p>writes data to a node</p>
-</dd>
-
+<p>This section surveys all the operations a developer can perform
+    against a ZooKeeper server. It is lower level information than the earlier
+    concepts chapters in this manual, but higher level than the ZooKeeper API
+    Reference. It covers these topics:</p>
+<ul>
       
-<dt>
-<term>get children</term>
-</dt>
-<dd>
-<p>retrieves a list of children of a node</p>
-</dd>
-
+<li>
+        
+<p>
+<a href="#sc_connectingToZk">Connecting to ZooKeeper</a>
+</p>
       
-<dt>
-<term>sync</term>
-</dt>
-<dd>
-<p>waits for data to be propagated.</p>
-</dd>
+</li>
     
-</dl>
+</ul>
+<a name="N105E4"></a><a name="sc_connectingToZk"></a>
+<h3 class="h4">Connecting to ZooKeeper</h3>
+<p></p>
+<a name="N105ED"></a><a name="sc_readOps"></a>
+<h3 class="h4">Read Operations</h3>
+<p></p>
+<a name="N105F6"></a><a name="sc_writeOps"></a>
+<h3 class="h4">Write Operations</h3>
+<p></p>
+<a name="N105FF"></a><a name="sc_handlingWatches"></a>
+<h3 class="h4">Handling Watches</h3>
+<p></p>
+<a name="N10608"></a><a name="sc_miscOps"></a>
+<h3 class="h4">Miscelleaneous ZooKeeper Operations</h3>
+<p></p>
 </div>
+
   
-  
-<a name="N10619"></a><a name="ch_programStructureWithExample"></a>
+<a name="N10612"></a><a name="ch_programStructureWithExample"></a>
 <h2 class="h3">Program Structure, with Simple Example</h2>
 <div class="section">
 <p>
@@ -1604,7 +1585,7 @@
 </div>
 
   
-<a name="N10624"></a><a name="ch_gotchas"></a>
+<a name="N1061D"></a><a name="ch_gotchas"></a>
 <h2 class="h3">Gotchas: Common Problems and Troubleshooting</h2>
 <div class="section">
 <p>So now you know ZooKeeper. It's fast, simple, your application

Modified: hadoop/zookeeper/trunk/docs/zookeeperProgrammers.pdf
URL: 
http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/docs/zookeeperProgrammers.pdf?rev=702950&r1=702949&r2=702950&view=diff
==============================================================================
Binary files - no diff available.

Modified: 
hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml
URL: 
http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml?rev=702950&r1=702949&r2=702950&view=diff
==============================================================================
--- 
hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml
 (original)
+++ 
hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml
 Wed Oct  8 11:17:52 2008
@@ -14,7 +14,6 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-
 <!DOCTYPE article PUBLIC "-//OASIS//DTD Simplified DocBook XML V1.0//EN"
 "http://www.oasis-open.org/docbook/xml/simple/1.0/sdocbook.dtd";>
 <article id="bk_programmersGuide">
@@ -139,13 +138,14 @@
       </listitem>
 
       <listitem>
-        <para>The following characters are not allowed: \ud800 -uF8FFF, 
\uFFF0-uFFFF, \uXFFFE -
-        \uXFFFF (where X is an digit 1 - E), \uF0000 - \uFFFFF.</para>
+        <para>The following characters are not allowed: \ud800 -uF8FFF,
+        \uFFF0-uFFFF, \uXFFFE - \uXFFFF (where X is a digit 1 - E), \uF0000 -
+        \uFFFFF.</para>
       </listitem>
 
       <listitem>
         <para>The "." character can be used as part of another name, but "."
-        and ".." cannot alone make up the whole name of a path location,
+        and ".." cannot alone be used to indicate a node along a path,
         because ZooKeeper doesn't use relative paths. The following would be
         invalid: "/a/b/./c" or "/a/b/../c".</para>
       </listitem>
@@ -774,8 +774,6 @@
               primitives can be used to construct higher level functions that
               provide complete client synchronization. (For more information,
               see the <ulink
-              url="recipes.html#sc_recipes_Locks">Locks</ulink>
-              <emphasis>[tbd:...]</emphasis> in <ulink
               url="recipes.html">Zookeeper Recipes</ulink>.
               <emphasis>[tbd:..]</emphasis>).</para>
             </listitem>
@@ -1023,73 +1021,49 @@
    <section id="ch_guideToZkOperations">
     <title>Building Blocks: A Guide to ZooKeeper Operations</title>
 
-    <para><emphasis>[tbd: This is a new section. The below
-    is just placeholder. Eventually, a subsection on each of those operations, 
with a little
-    bit of illustrative code for each op.] </emphasis></para>
-
-    <para>One of the design goals of ZooKeeper is provide a very simple
-    programming interface. As a result, it supports only these
-    operations:</para>
-
-    <variablelist>
-      <varlistentry>
-        <term>create</term>
-
-        <listitem>
-          <para>creates a node at a location in the tree</para>
-        </listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term>delete</term>
-
-        <listitem>
-          <para>deletes a node</para>
-        </listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term>exists</term>
-
-        <listitem>
-          <para>tests if a node exists at a location</para>
-        </listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term>get data</term>
+    <para>This section surveys all the operations a developer can perform
+    against a ZooKeeper server. It is lower level information than the earlier
+    concepts chapters in this manual, but higher level than the ZooKeeper API
+    Reference. It covers these topics:</para>
 
-        <listitem>
-          <para>reads the data from a node</para>
-        </listitem>
-      </varlistentry>
+    <itemizedlist>
+      <listitem>
+        <para><xref linkend="sc_connectingToZk" /></para>
+      </listitem>
+    </itemizedlist>
 
-      <varlistentry>
-        <term>set data</term>
+    <section id="sc_connectingToZk">
+      <title>Connecting to ZooKeeper</title>
 
-        <listitem>
-          <para>writes data to a node</para>
-        </listitem>
-      </varlistentry>
+      <para></para>
+    </section>
+    
+    <section id="sc_readOps">
+      <title>Read Operations</title>
 
-      <varlistentry>
-        <term>get children</term>
+      <para></para>
+    </section>
+    
+    <section id="sc_writeOps">
+      <title>Write Operations</title>
 
-        <listitem>
-          <para>retrieves a list of children of a node</para>
-        </listitem>
-      </varlistentry>
+      <para></para>
+    </section>
+    
+    <section id="sc_handlingWatches">
+      <title>Handling Watches</title>
 
-      <varlistentry>
-        <term>sync</term>
+      <para></para>
+    </section>
+    
+    <section id="sc_miscOps">
+      <title>Miscelleaneous ZooKeeper Operations</title>
+      <para></para>
+    </section>
+    
 
-        <listitem>
-          <para>waits for data to be propagated.</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
   </section>
-  
+
   <section id="ch_programStructureWithExample">
     <title>Program Structure, with Simple Example</title>
 


Reply via email to