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/08 15:18:43 UTC

[3/7] incubator-tinkerpop git commit: Add javadoc to ServerGremlinExecutor.

Add javadoc to ServerGremlinExecutor.


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

Branch: refs/heads/TINKERPOP-1184
Commit: d54b658f08d9cc91478f11310666e7271b7e194b
Parents: b9729a5
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Fri Mar 4 08:56:17 2016 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Fri Mar 4 08:56:17 2016 -0500

----------------------------------------------------------------------
 .../gremlin/server/util/ServerGremlinExecutor.java          | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/d54b658f/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/ServerGremlinExecutor.java
----------------------------------------------------------------------
diff --git a/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/ServerGremlinExecutor.java b/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/ServerGremlinExecutor.java
index b5d9f46..c8870ed 100644
--- a/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/ServerGremlinExecutor.java
+++ b/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/ServerGremlinExecutor.java
@@ -70,6 +70,14 @@ public class ServerGremlinExecutor<T extends ScheduledExecutorService> {
     public ServerGremlinExecutor(final Settings settings, final Class<T> scheduleExecutorServiceClass) {
         this(settings, null, null, scheduleExecutorServiceClass);
     }
+
+    /**
+     * Create a new object from {@link Settings} where thread pools are externally assigned. Note that if the
+     * {@code scheduleExecutorServiceClass} is set to {@code null} it will be created via
+     * {@link Executors#newScheduledThreadPool(int, ThreadFactory)}.  If either of the {@link ExecutorService}
+     * instances are supplied, the {@link Settings#gremlinPool} value will be ignored for the pool size. The
+     * {@link GraphManager} will be constructed from the {@link Settings}.
+     */
     public ServerGremlinExecutor(final Settings settings, final ExecutorService gremlinExecutorService,
                                  final T scheduledExecutorService, final Class<T> scheduleExecutorServiceClass) {
         this(settings,
@@ -104,7 +112,6 @@ public class ServerGremlinExecutor<T extends ScheduledExecutorService> {
             this.scheduledExecutorService = scheduledExecutorService;
         }
 
-        // initialize graphs from configuration
         this.graphManager = graphManager;
 
         logger.info("Initialized Gremlin thread pool.  Threads in pool named with pattern gremlin-*");