public class GremlinServer extends Object
Constructor and Description |
---|
GremlinServer(ServerGremlinExecutor<EventLoopGroup> serverGremlinExecutor)
Deprecated.
As of release 3.1.1-incubating, not replaced.
|
GremlinServer(Settings settings)
Construct a Gremlin Server instance from
Settings . |
Modifier and Type | Method and Description |
---|---|
static String |
getHeader() |
ServerGremlinExecutor<EventLoopGroup> |
getServerGremlinExecutor() |
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.
|
String |
toString() |
public GremlinServer(Settings settings)
Settings
.@Deprecated 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 ServerGremlinExecutor<EventLoopGroup> getServerGremlinExecutor()
public static String getHeader()
Copyright © 2013–2017 Apache Software Foundation. All rights reserved.