Class ServerGremlinExecutor

java.lang.Object
org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor

public class ServerGremlinExecutor extends Object
The core of script execution in Gremlin Server. Given Settings and optionally other arguments, this class will construct a GremlinExecutor to be used by Gremlin Server. A typical usage would be to instantiate the GremlinServer and then immediately call GremlinServer.getServerGremlinExecutor() which would allow the opportunity to assign "host options" which could be used by a custom Channelizer. Add these options before calling GremlinServer.start() to be sure the Channelizer gets access to those.
Author:
Stephen Mallette (http://stephen.genoprime.com)
  • Field Details

    • channelsTotalGauge

      public final com.codahale.metrics.Gauge channelsTotalGauge
      The total number of channels.
    • channelsPausedGauge

      public final com.codahale.metrics.Gauge channelsPausedGauge
      The total number of paused channels.
  • Constructor Details

  • Method Details

    • addHostOption

      public void addHostOption(String key, Object value)
    • getHostOptions

      public Map<String,Object> getHostOptions()
    • removeHostOption

      public Object removeHostOption(String key)
    • clearHostOptions

      public void clearHostOptions()
    • getScheduledExecutorService

      public ScheduledExecutorService getScheduledExecutorService()
    • getGremlinExecutor

      public GremlinExecutor getGremlinExecutor()
    • getGremlinExecutorService

      public ExecutorService getGremlinExecutorService()
    • getGraphManager

      public GraphManager getGraphManager()
    • getTransactionManager

      public TransactionManager getTransactionManager()
    • getSettings

      public Settings getSettings()
    • getHooks

      public List<LifeCycleHook> getHooks()
    • getChannels

      public io.netty.channel.group.DefaultChannelGroup getChannels()
      Gets all open channels (excluding the ServerSocketChannel).
    • getPausedChannelCount

      public long getPausedChannelCount()
      Gets the number of open channels currently in a paused state that are not writeable.
    • getChannelCount

      public long getChannelCount()
      Gets the number of open channels.