[ https://issues.apache.org/jira/browse/TINKERPOP-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15163259#comment-15163259 ]
ASF GitHub Bot commented on TINKERPOP-1085: ------------------------------------------- Github user pluradj commented on a diff in the pull request: https://github.com/apache/incubator-tinkerpop/pull/237#discussion_r53962369 --- Diff: gremlin-archetype/gremlin-archetype-server/src/main/resources/archetype-resources/README.asciidoc --- @@ -0,0 +1,67 @@ +//// +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. +//// +Gremlin Server Application +========================== + +This is a starter project that demonstrates how a basic +link:http://tinkerpop.apache.org/docs/${project.version}/reference/#gremlin-server[Gremlin Server] project is structured +with Maven. This project demonstrates how to connect to Gremlin Server through Java using the +link:http://tinkerpop.apache.org/docs/${project.version}/reference/#connecting-via-java[Gremlin Driver] that is +distributed by TinkerPop. + +Prerequisites +------------- + +* Java 8 Update 40+ +* link:https://maven.apache.org/[Maven 3.x] +* Gremlin Server is link:http://archive.apache.org/dist/incubator/tinkerpop/[downloaded] and unpackaged + +Building and Running +-------------------- + +Start Gremlin Server in the directory it was unpackaged and specify usage of the "modern" graph configuration: + +[source,text] +$ bin/gremlin-server.sh conf/gremlin-server-modern.yaml +[INFO] GremlinServer - + \,,,/ + (o o) +-----oOOo-(3)-oOOo----- + +[INFO] GremlinServer - Configuring Gremlin Server from conf/gremlin-server-modern.yaml +[INFO] MetricManager - Configured Metrics Slf4jReporter configured with interval=180000ms and loggerName=org.apache.tinkerpop.gremlin.server.Settings$Slf4jReporterMetrics +[INFO] Graphs - Graph [graph] was successfully configured via [conf/tinkergraph-empty.properties]. +[INFO] ServerGremlinExecutor - Initialized Gremlin thread pool. Threads in pool named with pattern gremlin-* +[INFO] ScriptEngines - Loaded gremlin-groovy ScriptEngine +[INFO] GremlinExecutor - Initialized gremlin-groovy ScriptEngine with scripts/generate-modern.groovy +[INFO] ServerGremlinExecutor - Initialized GremlinExecutor and configured ScriptEngines. +[INFO] ServerGremlinExecutor - A GraphTraversalSource is now bound to [g] with graphtraversalsource[tinkergraph[vertices:0 edges:0], standard] +[INFO] OpLoader - Adding the standard OpProcessor. +[INFO] OpLoader - Adding the control OpProcessor. +[INFO] OpLoader - Adding the session OpProcessor. +[INFO] GremlinServer - Executing start up LifeCycleHook +[INFO] Logger$info - Loading 'modern' graph data. +[INFO] AbstractChannelizer - Configured application/vnd.gremlin-v1.0+gryo with org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0 +[INFO] AbstractChannelizer - Configured application/vnd.gremlin-v1.0+gryo-stringd with org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0 +[INFO] GremlinServer$1 - Gremlin Server configured with worker thread pool of 1, gremlin pool of 8 and boss thread pool of 1. +[INFO] GremlinServer$1 - Channel started at port 8182. + +Build and run this project as follows: + +[source,text] +mvn clean package --- End diff -- need to make sure that the Gremlin Server is not running, otherwise the unit test fails. > Establish TinkerPop "example" projects > -------------------------------------- > > Key: TINKERPOP-1085 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1085 > Project: TinkerPop > Issue Type: Improvement > Components: documentation > Affects Versions: 3.1.0-incubating > Reporter: stephen mallette > Assignee: stephen mallette > Fix For: 3.1.2-incubating > > > Create a {{gremlin-examples}} module that in turn would have some sub-modules > containing example Gremlin code. The thread of discussion is here: > https://pony-poc.apache.org/thread.html/Z1mhshgtenmsu87 > but in summary, there were ideas to write example modules for lots of > different things: > * Gremlin Server usage > * DSL examples -- SocialTraversal/etc. > * Language compiler -- Java RegEx into Gremlin instructions (e.g.). > * Build your own implementation examples --- like a stub of a graph > implementation to get people going. > * maven archetypes > For this task, I think this just entails setting up the pattern for doing > this. Perhaps we could include the work of [~pluradj] (if he'd care to > contribute it) at: > https://github.com/pluradj/tp3-java-example > or something similar. We could then expand from there. -- This message was sent by Atlassian JIRA (v6.3.4#6332)