use of org.apache.tinkerpop.gremlin.server.GremlinServer in project cypher-for-gremlin by opencypher.
the class EmbeddedGremlinServer method start.
public void start() {
if (gremlinServer != null) {
throw new IllegalStateException("EmbeddedGremlinServer already started!");
}
try {
gremlinServer = new GremlinServer(settings);
gremlinServer.start().join();
logger.info("EmbeddedGremlinServer started (port {})", getPort());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
use of org.apache.tinkerpop.gremlin.server.GremlinServer in project janusgraph by JanusGraph.
the class AbstractGremlinServerIntegrationTest method startServer.
public void startServer() throws Exception {
final InputStream stream = getSettingsInputStream();
final Settings settings = Settings.read(stream);
final Settings overridenSettings = overrideSettings(settings);
if (GREMLIN_SERVER_EPOLL) {
overridenSettings.useEpollEventLoop = true;
}
this.server = new GremlinServer(overridenSettings);
server.start().join();
}
use of org.apache.tinkerpop.gremlin.server.GremlinServer in project janusgraph by JanusGraph.
the class AbstractGremlinServerIntegrationTest method startServer.
public void startServer(final Settings settings) throws Exception {
if (null == settings) {
startServer();
} else {
final Settings overridenSettings = overrideSettings(settings);
if (GREMLIN_SERVER_EPOLL) {
overridenSettings.useEpollEventLoop = true;
}
this.server = new GremlinServer(overridenSettings);
server.start().join();
}
}
Aggregations