public class ServerGremlinExecutor<T extends ScheduledExecutorService> extends Object
Settings
and optionally other arguments, this
class will construct a GremlinExecutor
to be used by Gremlin Server. Those expecting to build their
own version of Gremlin Server might consider coring their implementation with this class as it provides some
basic infrastructure required for most of Gremlin Server script processing features. Those embedding Gremlin
Server in another application might consider using this class to initialize the GremlinServer
class
as it will allow sharing of thread pool resources.Constructor and Description |
---|
ServerGremlinExecutor(Settings settings,
Class<T> scheduleExecutorServiceClass)
Create a new object from
Settings where thread pools are internally created. |
ServerGremlinExecutor(Settings settings,
ExecutorService gremlinExecutorService,
T scheduledExecutorService,
Class<T> scheduleExecutorServiceClass)
Create a new object from
Settings where thread pools are internally created. |
Modifier and Type | Method and Description |
---|---|
GraphManager |
getGraphManager() |
GremlinExecutor |
getGremlinExecutor() |
ExecutorService |
getGremlinExecutorService() |
List<LifeCycleHook> |
getHooks() |
T |
getScheduledExecutorService() |
Settings |
getSettings() |
public ServerGremlinExecutor(Settings settings, Class<T> scheduleExecutorServiceClass)
Settings
where thread pools are internally created. Note that the
scheduleExecutorServiceClass
will be created via
Executors.newScheduledThreadPool(int, ThreadFactory)
.public ServerGremlinExecutor(Settings settings, ExecutorService gremlinExecutorService, T scheduledExecutorService, Class<T> scheduleExecutorServiceClass)
Settings
where thread pools are internally created. Note that if the
scheduleExecutorServiceClass
is set to null
it will be created via
Executors.newScheduledThreadPool(int, ThreadFactory)
. If either of the ExecutorService
instances are supplied, the Settings.gremlinPool
value will be ignored for the pool size.public T getScheduledExecutorService()
public GremlinExecutor getGremlinExecutor()
public ExecutorService getGremlinExecutorService()
public GraphManager getGraphManager()
public Settings getSettings()
public List<LifeCycleHook> getHooks()
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.