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 8C2BA19EEF for ; Tue, 15 Mar 2016 18:31:56 +0000 (UTC) Received: (qmail 1868 invoked by uid 500); 15 Mar 2016 18:31:56 -0000 Delivered-To: apmail-tinkerpop-commits-archive@tinkerpop.apache.org Received: (qmail 1841 invoked by uid 500); 15 Mar 2016 18:31:56 -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 1831 invoked by uid 99); 15 Mar 2016 18:31:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Mar 2016 18:31:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D0255C1C8E for ; Tue, 15 Mar 2016 18:31:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.221 X-Spam-Level: X-Spam-Status: No, score=-3.221 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.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 0bH9B6hqKA_l for ; Tue, 15 Mar 2016 18:31:53 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 11D155F343 for ; Tue, 15 Mar 2016 18:31:52 +0000 (UTC) Received: (qmail 1828 invoked by uid 99); 15 Mar 2016 18:31:52 -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; Tue, 15 Mar 2016 18:31:52 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4410BDFB8A; Tue, 15 Mar 2016 18:31:52 +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 Message-Id: <8195d73c5ae342f7b8ab56483994d882@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-tinkerpop git commit: Made the constructor for DriverRemoteConnection internal for testing. Date: Tue, 15 Mar 2016 18:31:52 +0000 (UTC) Repository: incubator-tinkerpop Updated Branches: refs/heads/TINKERPOP-575 a2ec7ab34 -> 10fe10f4e Made the constructor for DriverRemoteConnection internal for testing. Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/10fe10f4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/10fe10f4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/10fe10f4 Branch: refs/heads/TINKERPOP-575 Commit: 10fe10f4e8d31afa6df5020e7fab0edc129f22c2 Parents: a2ec7ab Author: Stephen Mallette Authored: Tue Mar 15 14:31:16 2016 -0400 Committer: Stephen Mallette Committed: Tue Mar 15 14:31:16 2016 -0400 ---------------------------------------------------------------------- .../driver/remote/DriverRemoteConnection.java | 18 +-- .../driver/remote/RemoteGraphProvider.java | 140 ++++++++++++++++++ .../gremlin/remote/RemoteGraphProvider.java | 141 ------------------- ...RemoteGraphProcessStandardIntegrateTest.java | 2 +- .../remote/gremlin-server-integration.yaml | 63 +++++++++ .../remote/gremlin-server-integration.yaml | 63 --------- 6 files changed, 214 insertions(+), 213 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/10fe10f4/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/remote/DriverRemoteConnection.java ---------------------------------------------------------------------- diff --git a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/remote/DriverRemoteConnection.java b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/remote/DriverRemoteConnection.java index 9527dfc..c900523 100644 --- a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/remote/DriverRemoteConnection.java +++ b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/remote/DriverRemoteConnection.java @@ -35,7 +35,6 @@ import org.apache.tinkerpop.gremlin.structure.util.GraphFactory; import java.util.Iterator; import java.util.Optional; -import java.util.function.Consumer; import java.util.function.Supplier; /** @@ -74,13 +73,6 @@ public class DriverRemoteConnection implements RemoteConnection { this.conf = Optional.of(conf); } - public DriverRemoteConnection(final Cluster cluster, final Configuration conf) { - connectionGraphName = conf.getString("connectionGraphName", "graph"); - client = cluster.connect(Client.Settings.build().unrollTraversers(false).create()).alias(connectionGraphName); - tryCloseCluster = false; - this.conf = Optional.of(conf); - } - private DriverRemoteConnection(final Cluster cluster, final boolean tryCloseCluster, final String connectionGraphName){ client = cluster.connect(Client.Settings.build().unrollTraversers(false).create()).alias(connectionGraphName); this.connectionGraphName = connectionGraphName; @@ -88,6 +80,16 @@ public class DriverRemoteConnection implements RemoteConnection { } /** + * This constructor is largely just for unit testing purposes and should not typically be used externally. + */ + DriverRemoteConnection(final Cluster cluster, final Configuration conf) { + connectionGraphName = conf.getString("connectionGraphName", "graph"); + client = cluster.connect(Client.Settings.build().unrollTraversers(false).create()).alias(connectionGraphName); + tryCloseCluster = false; + this.conf = Optional.of(conf); + } + + /** * Creates a {@link DriverRemoteConnection} from an existing {@link Cluster} instance. When {@link #close()} is * called, the {@link Cluster} is left open for the caller to close. By default, this method will bind the * {@link RemoteConnection} to a graph on the server named "graph". http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/10fe10f4/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/driver/remote/RemoteGraphProvider.java ---------------------------------------------------------------------- diff --git a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/driver/remote/RemoteGraphProvider.java b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/driver/remote/RemoteGraphProvider.java new file mode 100644 index 0000000..7592823 --- /dev/null +++ b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/driver/remote/RemoteGraphProvider.java @@ -0,0 +1,140 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.tinkerpop.gremlin.driver.remote; + +import org.apache.commons.configuration.Configuration; +import org.apache.tinkerpop.gremlin.AbstractGraphProvider; +import org.apache.tinkerpop.gremlin.LoadGraphWith; +import org.apache.tinkerpop.gremlin.driver.Client; +import org.apache.tinkerpop.gremlin.driver.Cluster; +import org.apache.tinkerpop.gremlin.process.remote.RemoteGraph; +import org.apache.tinkerpop.gremlin.server.GremlinServer; +import org.apache.tinkerpop.gremlin.server.ServerTestHelper; +import org.apache.tinkerpop.gremlin.server.Settings; +import org.apache.tinkerpop.gremlin.structure.Graph; +import org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph; + +import java.io.InputStream; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; +import java.util.function.Supplier; + +/** + * @author Stephen Mallette (http://stephen.genoprime.com) + */ +public class RemoteGraphProvider extends AbstractGraphProvider { + private static final Set IMPLEMENTATION = new HashSet() {{ + add(RemoteGraph.class); + }}; + + private static GremlinServer server; + private final Map remoteCache = new HashMap<>(); + private final Cluster cluster = Cluster.open(); + private final Client client = cluster.connect(); + + static { + try { + startServer(); + } catch (Exception ex) { + ex.printStackTrace(); + } + } + + @Override + public Graph openTestGraph(final Configuration config) { + final String serverGraphName = config.getString("connectionGraphName"); + return remoteCache.computeIfAbsent(serverGraphName, + k -> RemoteGraph.open(new DriverRemoteConnection(cluster, config), TinkerGraph.class)); + } + + @Override + public Map getBaseConfiguration(final String graphName, Class test, final String testMethodName, + final LoadGraphWith.GraphData loadGraphWith) { + final String serverGraphName = getServerGraphName(loadGraphWith); + + final Supplier graphGetter = () -> server.getServerGremlinExecutor().getGraphManager().getGraphs().get(serverGraphName); + return new HashMap() {{ + put(Graph.GRAPH, RemoteGraph.class.getName()); + put(RemoteGraph.GREMLIN_SERVERGRAPH_GRAPH_CLASS, TinkerGraph.class.getName()); + put(RemoteGraph.GREMLIN_SERVERGRAPH_SERVER_CONNECTION_CLASS, DriverRemoteConnection.class.getName()); + put("connectionGraphName", serverGraphName); + put("hidden.for.testing.only", graphGetter); + }}; + } + + @Override + public void clear(final Graph graph, final Configuration configuration) throws Exception { + // doesn't bother to clear grateful because i don't believe that ever gets mutated - read-only + client.submit("classic.clear();modern.clear();crew.clear();graph.clear();" + + "TinkerFactory.generateClassic(classic);" + + "TinkerFactory.generateModern(modern);" + + "TinkerFactory.generateTheCrew(crew);null").all().get(); + } + + @Override + public void loadGraphData(final Graph graph, final LoadGraphWith loadGraphWith, final Class testClass, final String testName) { + // server already loads with the all the graph instances for LoadGraphWith + } + + @Override + public Set getImplementations() { + return IMPLEMENTATION; + } + + public static void startServer() throws Exception { + final InputStream stream = RemoteGraphProvider.class.getResourceAsStream("gremlin-server-integration.yaml"); + final Settings settings = Settings.read(stream); + ServerTestHelper.rewritePathsInGremlinServerSettings(settings); + server = new GremlinServer(settings); + + server.start().join(); + } + + public static void stopServer() throws Exception { + server.stop().join(); + server = null; + } + + private static String getServerGraphName(final LoadGraphWith.GraphData loadGraphWith) { + final String serverGraphName; + + if (null == loadGraphWith) return "graph"; + + switch (loadGraphWith) { + case CLASSIC: + serverGraphName = "classic"; + break; + case MODERN: + serverGraphName = "modern"; + break; + case GRATEFUL: + serverGraphName = "grateful"; + break; + case CREW: + serverGraphName = "crew"; + break; + default: + serverGraphName = "graph"; + break; + } + return serverGraphName; + } +} http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/10fe10f4/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/remote/RemoteGraphProvider.java ---------------------------------------------------------------------- diff --git a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/remote/RemoteGraphProvider.java b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/remote/RemoteGraphProvider.java deleted file mode 100644 index 37128c7..0000000 --- a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/remote/RemoteGraphProvider.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tinkerpop.gremlin.remote; - -import org.apache.commons.configuration.Configuration; -import org.apache.tinkerpop.gremlin.AbstractGraphProvider; -import org.apache.tinkerpop.gremlin.LoadGraphWith; -import org.apache.tinkerpop.gremlin.driver.Client; -import org.apache.tinkerpop.gremlin.driver.Cluster; -import org.apache.tinkerpop.gremlin.driver.remote.DriverRemoteConnection; -import org.apache.tinkerpop.gremlin.process.remote.RemoteGraph; -import org.apache.tinkerpop.gremlin.server.GremlinServer; -import org.apache.tinkerpop.gremlin.server.ServerTestHelper; -import org.apache.tinkerpop.gremlin.server.Settings; -import org.apache.tinkerpop.gremlin.structure.Graph; -import org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph; - -import java.io.InputStream; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; -import java.util.function.Supplier; - -/** - * @author Stephen Mallette (http://stephen.genoprime.com) - */ -public class RemoteGraphProvider extends AbstractGraphProvider { - private static final Set IMPLEMENTATION = new HashSet() {{ - add(RemoteGraph.class); - }}; - - private static GremlinServer server; - private final Map remoteCache = new HashMap<>(); - private final Cluster cluster = Cluster.open(); - private final Client client = cluster.connect(); - - static { - try { - startServer(); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - - @Override - public Graph openTestGraph(final Configuration config) { - final String serverGraphName = config.getString("connectionGraphName"); - return remoteCache.computeIfAbsent(serverGraphName, - k -> RemoteGraph.open(new DriverRemoteConnection(cluster, config), TinkerGraph.class)); - } - - @Override - public Map getBaseConfiguration(final String graphName, Class test, final String testMethodName, - final LoadGraphWith.GraphData loadGraphWith) { - final String serverGraphName = getServerGraphName(loadGraphWith); - - final Supplier graphGetter = () -> server.getServerGremlinExecutor().getGraphManager().getGraphs().get(serverGraphName); - return new HashMap() {{ - put(Graph.GRAPH, RemoteGraph.class.getName()); - put(RemoteGraph.GREMLIN_SERVERGRAPH_GRAPH_CLASS, TinkerGraph.class.getName()); - put(RemoteGraph.GREMLIN_SERVERGRAPH_SERVER_CONNECTION_CLASS, DriverRemoteConnection.class.getName()); - put("connectionGraphName", serverGraphName); - put("hidden.for.testing.only", graphGetter); - }}; - } - - @Override - public void clear(final Graph graph, final Configuration configuration) throws Exception { - // doesn't bother to clear grateful because i don't believe that ever gets mutated - read-only - client.submit("classic.clear();modern.clear();crew.clear();graph.clear();" + - "TinkerFactory.generateClassic(classic);" + - "TinkerFactory.generateModern(modern);" + - "TinkerFactory.generateTheCrew(crew);null").all().get(); - } - - @Override - public void loadGraphData(final Graph graph, final LoadGraphWith loadGraphWith, final Class testClass, final String testName) { - // server already loads with the all the graph instances for LoadGraphWith - } - - @Override - public Set getImplementations() { - return IMPLEMENTATION; - } - - public static void startServer() throws Exception { - final InputStream stream = RemoteGraphProvider.class.getResourceAsStream("gremlin-server-integration.yaml"); - final Settings settings = Settings.read(stream); - ServerTestHelper.rewritePathsInGremlinServerSettings(settings); - server = new GremlinServer(settings); - - server.start().join(); - } - - public static void stopServer() throws Exception { - server.stop().join(); - server = null; - } - - private static String getServerGraphName(final LoadGraphWith.GraphData loadGraphWith) { - final String serverGraphName; - - if (null == loadGraphWith) return "graph"; - - switch (loadGraphWith) { - case CLASSIC: - serverGraphName = "classic"; - break; - case MODERN: - serverGraphName = "modern"; - break; - case GRATEFUL: - serverGraphName = "grateful"; - break; - case CREW: - serverGraphName = "crew"; - break; - default: - serverGraphName = "graph"; - break; - } - return serverGraphName; - } -} http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/10fe10f4/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/remote/process/RemoteGraphProcessStandardIntegrateTest.java ---------------------------------------------------------------------- diff --git a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/remote/process/RemoteGraphProcessStandardIntegrateTest.java b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/remote/process/RemoteGraphProcessStandardIntegrateTest.java index 8af0e4e..8669be3 100644 --- a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/remote/process/RemoteGraphProcessStandardIntegrateTest.java +++ b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/remote/process/RemoteGraphProcessStandardIntegrateTest.java @@ -21,7 +21,7 @@ package org.apache.tinkerpop.gremlin.remote.process; import org.apache.tinkerpop.gremlin.GraphProviderClass; import org.apache.tinkerpop.gremlin.process.ProcessStandardSuite; import org.apache.tinkerpop.gremlin.process.remote.RemoteGraph; -import org.apache.tinkerpop.gremlin.remote.RemoteGraphProvider; +import org.apache.tinkerpop.gremlin.driver.remote.RemoteGraphProvider; import org.junit.runner.RunWith; /** http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/10fe10f4/gremlin-server/src/test/resources/org/apache/tinkerpop/gremlin/driver/remote/gremlin-server-integration.yaml ---------------------------------------------------------------------- diff --git a/gremlin-server/src/test/resources/org/apache/tinkerpop/gremlin/driver/remote/gremlin-server-integration.yaml b/gremlin-server/src/test/resources/org/apache/tinkerpop/gremlin/driver/remote/gremlin-server-integration.yaml new file mode 100644 index 0000000..c8a78fb --- /dev/null +++ b/gremlin-server/src/test/resources/org/apache/tinkerpop/gremlin/driver/remote/gremlin-server-integration.yaml @@ -0,0 +1,63 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +host: localhost +port: 8182 +threadPoolWorker: 1 +gremlinPool: 8 +scriptEvaluationTimeout: 30000 +serializedResponseTimeout: 30000 +graphs: { + graph: conf/tinkergraph-empty.properties, + classic: conf/tinkergraph-empty.properties, + modern: conf/tinkergraph-empty.properties, + crew: conf/tinkergraph-empty.properties, + grateful: conf/tinkergraph-empty.properties} +plugins: + - tinkerpop.tinkergraph +scriptEngines: { + gremlin-groovy: { + imports: [java.lang.Math], + staticImports: [java.lang.Math.PI], + scripts: [scripts/generate-all.groovy]}, + nashorn: { + imports: [java.lang.Math], + staticImports: [java.lang.Math.PI]}} +serializers: + - { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config: { useMapperFromGraph: graph, custom: [groovy.json.JsonBuilder;org.apache.tinkerpop.gremlin.driver.ser.JsonBuilderGryoSerializer]}} + - { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config: { serializeResultToString: true}} + - { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV1d0, config: { useMapperFromGraph: graph }} + - { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0, config: { useMapperFromGraph: graph }} +processors: + - { className: org.apache.tinkerpop.gremlin.server.op.session.SessionOpProcessor, config: { sessionTimeout: 28800000 }} +metrics: { + consoleReporter: {enabled: true, interval: 180000}, + csvReporter: {enabled: true, interval: 180000, fileName: /tmp/gremlin-server-metrics.csv}, + jmxReporter: {enabled: true}, + slf4jReporter: {enabled: true, interval: 180000}, + gangliaReporter: {enabled: false, interval: 180000, addressingMode: MULTICAST}, + graphiteReporter: {enabled: false, interval: 180000}} +strictTransactionManagement: false +threadPoolBoss: 1 +maxInitialLineLength: 4096 +maxHeaderSize: 8192 +maxChunkSize: 8192 +maxContentLength: 65536 +maxAccumulationBufferComponents: 1024 +resultIterationBatchSize: 64 +writeBufferHighWaterMark: 32768 +writeBufferHighWaterMark: 65536 http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/10fe10f4/gremlin-server/src/test/resources/org/apache/tinkerpop/gremlin/remote/gremlin-server-integration.yaml ---------------------------------------------------------------------- diff --git a/gremlin-server/src/test/resources/org/apache/tinkerpop/gremlin/remote/gremlin-server-integration.yaml b/gremlin-server/src/test/resources/org/apache/tinkerpop/gremlin/remote/gremlin-server-integration.yaml deleted file mode 100644 index c8a78fb..0000000 --- a/gremlin-server/src/test/resources/org/apache/tinkerpop/gremlin/remote/gremlin-server-integration.yaml +++ /dev/null @@ -1,63 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -host: localhost -port: 8182 -threadPoolWorker: 1 -gremlinPool: 8 -scriptEvaluationTimeout: 30000 -serializedResponseTimeout: 30000 -graphs: { - graph: conf/tinkergraph-empty.properties, - classic: conf/tinkergraph-empty.properties, - modern: conf/tinkergraph-empty.properties, - crew: conf/tinkergraph-empty.properties, - grateful: conf/tinkergraph-empty.properties} -plugins: - - tinkerpop.tinkergraph -scriptEngines: { - gremlin-groovy: { - imports: [java.lang.Math], - staticImports: [java.lang.Math.PI], - scripts: [scripts/generate-all.groovy]}, - nashorn: { - imports: [java.lang.Math], - staticImports: [java.lang.Math.PI]}} -serializers: - - { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config: { useMapperFromGraph: graph, custom: [groovy.json.JsonBuilder;org.apache.tinkerpop.gremlin.driver.ser.JsonBuilderGryoSerializer]}} - - { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config: { serializeResultToString: true}} - - { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV1d0, config: { useMapperFromGraph: graph }} - - { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0, config: { useMapperFromGraph: graph }} -processors: - - { className: org.apache.tinkerpop.gremlin.server.op.session.SessionOpProcessor, config: { sessionTimeout: 28800000 }} -metrics: { - consoleReporter: {enabled: true, interval: 180000}, - csvReporter: {enabled: true, interval: 180000, fileName: /tmp/gremlin-server-metrics.csv}, - jmxReporter: {enabled: true}, - slf4jReporter: {enabled: true, interval: 180000}, - gangliaReporter: {enabled: false, interval: 180000, addressingMode: MULTICAST}, - graphiteReporter: {enabled: false, interval: 180000}} -strictTransactionManagement: false -threadPoolBoss: 1 -maxInitialLineLength: 4096 -maxHeaderSize: 8192 -maxChunkSize: 8192 -maxContentLength: 65536 -maxAccumulationBufferComponents: 1024 -resultIterationBatchSize: 64 -writeBufferHighWaterMark: 32768 -writeBufferHighWaterMark: 65536