You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by ra...@apache.org on 2014/05/27 18:56:28 UTC

[5/5] git commit: first pass at a recipe: locking

first pass at a recipe: locking


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

Branch: refs/heads/curator-rpc
Commit: 01e9cb0a80924efbf8febdf8fff2ae52fcc02d5c
Parents: ae3d13b
Author: randgalt <ra...@apache.org>
Authored: Tue May 27 11:56:20 2014 -0500
Committer: randgalt <ra...@apache.org>
Committed: Tue May 27 11:56:20 2014 -0500

----------------------------------------------------------------------
 .../java/org/apache/curator/x/rpc/Closer.java   |    6 +
 .../x/rpc/idl/projection/GenericProjection.java |   20 +
 .../curator/generated/CuratorService.java       | 2130 +++++++++++++++++-
 .../curator/generated/GenericProjection.java    |  388 ++++
 .../org/apache/curator/x/rpc/TestClient.java    |    4 +
 5 files changed, 2489 insertions(+), 59 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/01e9cb0a/curator-x-rpc/src/main/java/org/apache/curator/x/rpc/Closer.java
----------------------------------------------------------------------
diff --git a/curator-x-rpc/src/main/java/org/apache/curator/x/rpc/Closer.java b/curator-x-rpc/src/main/java/org/apache/curator/x/rpc/Closer.java
new file mode 100644
index 0000000..a389776
--- /dev/null
+++ b/curator-x-rpc/src/main/java/org/apache/curator/x/rpc/Closer.java
@@ -0,0 +1,6 @@
+package org.apache.curator.x.rpc;
+
+public interface Closer<T>
+{
+    public void close(T thing);
+}

http://git-wip-us.apache.org/repos/asf/curator/blob/01e9cb0a/curator-x-rpc/src/main/java/org/apache/curator/x/rpc/idl/projection/GenericProjection.java
----------------------------------------------------------------------
diff --git a/curator-x-rpc/src/main/java/org/apache/curator/x/rpc/idl/projection/GenericProjection.java b/curator-x-rpc/src/main/java/org/apache/curator/x/rpc/idl/projection/GenericProjection.java
new file mode 100644
index 0000000..cfdc74f
--- /dev/null
+++ b/curator-x-rpc/src/main/java/org/apache/curator/x/rpc/idl/projection/GenericProjection.java
@@ -0,0 +1,20 @@
+package org.apache.curator.x.rpc.idl.projection;
+
+import com.facebook.swift.codec.ThriftField;
+import com.facebook.swift.codec.ThriftStruct;
+
+@ThriftStruct
+public class GenericProjection
+{
+    @ThriftField(1)
+    public String id;
+
+    public GenericProjection()
+    {
+    }
+
+    public GenericProjection(String id)
+    {
+        this.id = id;
+    }
+}