Return-Path: X-Original-To: apmail-tinkerpop-commits-archive@minotaur.apache.org Delivered-To: apmail-tinkerpop-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EABBC18D20 for ; Fri, 11 Mar 2016 14:14:27 +0000 (UTC) Received: (qmail 68115 invoked by uid 500); 11 Mar 2016 14:14:27 -0000 Delivered-To: apmail-tinkerpop-commits-archive@tinkerpop.apache.org Received: (qmail 68089 invoked by uid 500); 11 Mar 2016 14:14:27 -0000 Mailing-List: contact commits-help@tinkerpop.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tinkerpop.incubator.apache.org Delivered-To: mailing list commits@tinkerpop.incubator.apache.org Received: (qmail 68068 invoked by uid 99); 11 Mar 2016 14:14:27 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2016 14:14:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5599F1A0036 for ; Fri, 11 Mar 2016 14:14:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.549 X-Spam-Level: X-Spam-Status: No, score=-3.549 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.329] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id PKypfmZTKJbd for ; Fri, 11 Mar 2016 14:14:25 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 850C45F2C4 for ; Fri, 11 Mar 2016 14:14:24 +0000 (UTC) Received: (qmail 67938 invoked by uid 99); 11 Mar 2016 14:14:23 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2016 14:14:23 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8F399DFFB9; Fri, 11 Mar 2016 14:14:23 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: spmallette@apache.org To: commits@tinkerpop.incubator.apache.org Date: Fri, 11 Mar 2016 14:14:24 -0000 Message-Id: <7a9100634c8b480d8aab59258263acbb@git.apache.org> In-Reply-To: <96e60db160aa43ae8152772ae40c5368@git.apache.org> References: <96e60db160aa43ae8152772ae40c5368@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/5] incubator-tinkerpop git commit: Added some javadoc to ServerGraph. Added some javadoc to ServerGraph. Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/d1139c4c Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/d1139c4c Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/d1139c4c Branch: refs/heads/TINKERPOP-575 Commit: d1139c4cf2a6d03eb7d7968ef9463e2c0f6886a5 Parents: c82fbd0 Author: Stephen Mallette Authored: Thu Mar 10 17:23:32 2016 -0500 Committer: Stephen Mallette Committed: Thu Mar 10 17:23:32 2016 -0500 ---------------------------------------------------------------------- .../tinkerpop/gremlin/process/server/ServerGraph.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/d1139c4c/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/server/ServerGraph.java ---------------------------------------------------------------------- diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/server/ServerGraph.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/server/ServerGraph.java index c84a108..dfe8ae9 100644 --- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/server/ServerGraph.java +++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/server/ServerGraph.java @@ -32,6 +32,11 @@ import java.util.Collections; import java.util.Iterator; /** + * A {@code ServerGraph} represents a proxy by which traversals spawned from this graph are expected over a + * {@link ServerConnection}. This is not a full {@link Graph} implementation in the sense that the most of the methods + * will throw an {@link UnsupportedOperationException}. This implementation can only be used for spawning remote + * traversal instances. + * * @author Stephen Mallette (http://stephen.genoprime.com) */ public class ServerGraph implements Graph { @@ -49,6 +54,14 @@ public class ServerGraph implements Graph { return null; } + /** + * Creates a new {@link ServerGraph} instance. {@link ServerGraph} will attempt to call the + * {@link ServerConnection#close()} method when the {@link #close()} method is called on this class. + * + * @param connection the {@link ServerConnection} instance to use + * @param graphClass the {@link Graph} class expected to be executed on the other side of the + * {@link ServerConnection} + */ public static ServerGraph open(final ServerConnection connection, final Class graphClass) { return new ServerGraph(connection, graphClass); }