You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2016/03/17 23:43:57 UTC

[24/50] incubator-tinkerpop git commit: Add RemoteConnections dev docs.

Add RemoteConnections dev docs.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/420a6a52
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/420a6a52
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/420a6a52

Branch: refs/heads/TINKERPOP-575
Commit: 420a6a5218667f9e16889f83e56190d36ac128e4
Parents: 79293e1
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Mar 17 13:23:13 2016 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Mar 17 17:01:35 2016 -0400

----------------------------------------------------------------------
 docs/src/dev/provider/index.asciidoc            | 20 ++++++++++++++++++++
 .../src/reference/gremlin-applications.asciidoc |  1 +
 2 files changed, 21 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/420a6a52/docs/src/dev/provider/index.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/dev/provider/index.asciidoc b/docs/src/dev/provider/index.asciidoc
index 3299618..d6afb38 100644
--- a/docs/src/dev/provider/index.asciidoc
+++ b/docs/src/dev/provider/index.asciidoc
@@ -345,6 +345,26 @@ TIP: Consider separating serializer code into its own module, if possible, so th
 implementation remotely don't need a full dependency on the entire `Graph` - just the IO components and related
 classes being serialized.
 
+[[remoteconnection-implementations]]
+RemoteConnection Implementations
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+A `RemoteConnection` is an interface that is important for usage with
+link:http://tinkerpop.apache.org/docs/x.y.z/reference/#connecting-via-remotegraph[RemoteGraph]. A `RemoteGraph` takes
+a `RemoteConnection` implementation and submits constructed traversals to it for processing through a single method:
+
+[source,java]
+public Iterator<Traverser> submit(final Traversal t) throws RemoteConnectionException;
+
+TinkerPop provides the `DriverRemoteConnection` as a useful and example implementation. `DriverRemoteConnection`
+serializes the `Traversal` and then submits it for remote processing on Gremlin Server. Gremlin Server rebinds the
+`Traversal` to a configured `Graph` instance and then iterates the results back as it would normally do.
+
+Implementing `RemoteConnection` is not something routinely done for those implementing `gremlin-core`. It is only
+something required if there is a need to exploit `RemoteGraph` in some way. If a graph provider has a "graph server"
+similar to Gremlin Server that can accept a serialized `Traversal` instance, then that would be one example of a
+reason to implement this interface.
+
 [[validating-with-gremlin-test]]
 Validating with Gremlin-Test
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/420a6a52/docs/src/reference/gremlin-applications.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/reference/gremlin-applications.asciidoc b/docs/src/reference/gremlin-applications.asciidoc
index 0748d9e..9f9a05c 100644
--- a/docs/src/reference/gremlin-applications.asciidoc
+++ b/docs/src/reference/gremlin-applications.asciidoc
@@ -766,6 +766,7 @@ that iterates thousands of results will serialize each of those in memory into a
 quite possible that such a script will generate `OutOfMemoryError` exceptions on the server.  Consider the default
 WebSockets configuration, which supports streaming, if that type of use case is required.
 
+[[connecting-via-remotegraph]]
 Connecting via RemoteGraph
 ~~~~~~~~~~~~~~~~~~~~~~~~~~