Class GremlinServer
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.server.GremlinServer
 
- 
 public class GremlinServer extends Object Start and stop Gremlin Server.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringAUDIT_LOGGER_NAME
 - 
Constructor SummaryConstructors Constructor Description GremlinServer(Settings settings)Construct a Gremlin Server instance fromSettings.GremlinServer(Settings settings, ExecutorService gremlinExecutorService)Construct a Gremlin Server instance fromSettingsandExecutorService.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelizergetChannelizer()static StringgetHeader()ServerGremlinExecutorgetServerGremlinExecutor()static voidmain(String[] args)CompletableFuture<ServerGremlinExecutor>start()Start Gremlin Server withSettingsprovided to the constructor.CompletableFuture<Void>stop()Stop Gremlin Server and free the port binding.StringtoString()
 
- 
- 
- 
Field Detail- 
AUDIT_LOGGER_NAMEpublic static final String AUDIT_LOGGER_NAME - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
GremlinServerpublic GremlinServer(Settings settings) Construct a Gremlin Server instance fromSettings.
 - 
GremlinServerpublic GremlinServer(Settings settings, ExecutorService gremlinExecutorService) Construct a Gremlin Server instance fromSettingsandExecutorService. This constructor is useful when Gremlin Server is being used in an embedded style and there is a need to share thread pools with the hosting application.
 
- 
 - 
Method Detail- 
startpublic CompletableFuture<ServerGremlinExecutor> start() throws Exception Start Gremlin Server withSettingsprovided to the constructor.- Throws:
- Exception
 
 - 
stoppublic CompletableFuture<Void> stop() Stop Gremlin Server and free the port binding. Note that multiple calls to this method will return the same instance of theCompletableFuture.
 - 
getServerGremlinExecutorpublic ServerGremlinExecutor getServerGremlinExecutor() 
 - 
getChannelizerpublic Channelizer getChannelizer() 
 - 
getHeaderpublic static String getHeader() 
 
- 
 
-