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/16 15:40:18 UTC
[36/50] incubator-tinkerpop git commit: Add basic Features to
RemoteGraph - disable transactions.
Add basic Features to RemoteGraph - disable transactions.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/af6e8caf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/af6e8caf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/af6e8caf
Branch: refs/heads/TINKERPOP-575
Commit: af6e8caf73f0c36fc6c15d046920ffc54ffc0250
Parents: c54cd06
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Sat Mar 12 06:02:25 2016 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Wed Mar 16 09:50:47 2016 -0400
----------------------------------------------------------------------
.../gremlin/process/remote/RemoteGraph.java | 33 ++++++++++++++++++++
1 file changed, 33 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/af6e8caf/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/remote/RemoteGraph.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/remote/RemoteGraph.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/remote/RemoteGraph.java
index f818ba0..e88e824 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/remote/RemoteGraph.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/remote/RemoteGraph.java
@@ -162,4 +162,37 @@ public class RemoteGraph implements Graph {
public Configuration configuration() {
throw new UnsupportedOperationException(String.format("ServerGraph is a proxy to %s - this method is not supported", connection));
}
+
+ @Override
+ public Features features() {
+ return RemoteFeatures.INSTANCE;
+ }
+
+ public static class RemoteFeatures implements Features {
+ static RemoteFeatures INSTANCE = new RemoteFeatures();
+
+ private RemoteFeatures() {}
+
+ @Override
+ public GraphFeatures graph() {
+ return RemoteGraphFeatures.INSTANCE;
+ }
+ }
+
+ public static class RemoteGraphFeatures implements Features.GraphFeatures {
+
+ static RemoteGraphFeatures INSTANCE = new RemoteGraphFeatures();
+
+ private RemoteGraphFeatures() {}
+
+ @Override
+ public boolean supportsTransactions() {
+ return false;
+ }
+
+ @Override
+ public boolean supportsThreadedTransactions() {
+ return false;
+ }
+ }
}