public class GremlinServer extends Object
Constructor and Description |
---|
GremlinServer(ServerGremlinExecutor<EventLoopGroup> serverGremlinExecutor)
Construct a Gremlin Server instance from the
ServerGremlinExecutor which internally carries some
pre-constructed objects used by the server as well as the Settings object itself. |
GremlinServer(Settings settings)
Construct a Gremlin Server instance from
Settings . |
Modifier and Type | Method and Description |
---|---|
static String |
getHeader() |
static void |
main(String[] args) |
CompletableFuture<ServerGremlinExecutor<EventLoopGroup>> |
start()
Start Gremlin Server with
Settings provided to the constructor. |
CompletableFuture<Void> |
stop()
Stop Gremlin Server and free the port binding.
|
public GremlinServer(Settings settings)
Settings
.public GremlinServer(ServerGremlinExecutor<EventLoopGroup> serverGremlinExecutor)
ServerGremlinExecutor
which internally carries some
pre-constructed objects used by the server as well as the Settings
object itself. 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.public CompletableFuture<ServerGremlinExecutor<EventLoopGroup>> start() throws Exception
Settings
provided to the constructor.Exception
public CompletableFuture<Void> stop()
CompletableFuture
.public static String getHeader()
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.