curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject git commit: more doc
Date Sun, 23 Feb 2014 13:11:15 GMT
Repository: curator
Updated Branches:
  refs/heads/CURATOR-88 5f18bf5e7 -> a50f84e60


more doc


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/a50f84e6
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/a50f84e6
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/a50f84e6

Branch: refs/heads/CURATOR-88
Commit: a50f84e606cd1af333bb045e6382bc52547507f1
Parents: 5f18bf5
Author: randgalt <randgalt@apache.org>
Authored: Sun Feb 23 18:41:03 2014 +0530
Committer: randgalt <randgalt@apache.org>
Committed: Sun Feb 23 18:41:03 2014 +0530

----------------------------------------------------------------------
 .../src/site/confluence/client.confluence       |  20 ++++++++++---------
 .../site/resources/images/client-requests.png   | Bin 134807 -> 141430 bytes
 2 files changed, 11 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/a50f84e6/curator-x-rest/src/site/confluence/client.confluence
----------------------------------------------------------------------
diff --git a/curator-x-rest/src/site/confluence/client.confluence b/curator-x-rest/src/site/confluence/client.confluence
index 96c3f11..c34502a 100644
--- a/curator-x-rest/src/site/confluence/client.confluence
+++ b/curator-x-rest/src/site/confluence/client.confluence
@@ -51,17 +51,19 @@ statusMaintainer.remove(address, lockId)
 restClient.delete(address, "/curator/v1/recipes/lock/" + lockId.id)
 {code}
 
-The statusMaintainer mechanism should iterate over any records it has and call the status
API peridocially:
+The statusMaintainer mechanism should iterate over any records it has and call the status
API periodically:
 
 {code}
-do record in maintainedRecords
-    Status status = restClient.post(record.address, "/curator/v1/client/status", record.ids)
-    if status.state is not "connected"
-        ... assume you are not connected and handle accordingly ...
-    end
-    do message in status.messages
-        if message.type is "watch" ...
-        etc...
+loop
+    do record in maintainedRecords
+        Status status = restClient.post(record.address, "/curator/v1/client/status", record.ids)
+        if status.state is not "connected"
+            ... assume you are not connected and handle accordingly ...
+        end
+        do message in status.messages
+            if message.type is "watch" ...
+            etc...
+        end
     end
 
     sleep-for-a-bit

http://git-wip-us.apache.org/repos/asf/curator/blob/a50f84e6/curator-x-rest/src/site/resources/images/client-requests.png
----------------------------------------------------------------------
diff --git a/curator-x-rest/src/site/resources/images/client-requests.png b/curator-x-rest/src/site/resources/images/client-requests.png
index 3da02e9..f5d4765 100644
Binary files a/curator-x-rest/src/site/resources/images/client-requests.png and b/curator-x-rest/src/site/resources/images/client-requests.png
differ


Mime
View raw message