MCPcopy Create free account
hub / github.com/BaseXdb/basex / createServer

Method createServer

basex-core/src/main/java/org/basex/core/Sandbox.java:550–555  ·  view source on GitHub ↗

Creates a new, sandboxed server instance. @param args additional arguments @return server instance @throws IOException I/O exception

(final String... args)

Source from the content-addressed store, hash-verified

548 * @throws IOException I/O exception
549 */
550 public static BaseXServer createServer(final String... args) throws IOException {
551 final StringList sl = new StringList("-p" + DB_PORT, "-z", "-c", "password " + NAME, "-q");
552 final BaseXServer server = new BaseXServer(sl.add(args).finish());
553 server.context.soptions.set(StaticOptions.DBPATH, sandbox().path());
554 return server;
555 }
556
557 /**
558 * Stops a server instance.

Callers 15

beforeMethod · 0.80
runMethod · 0.80
startMethod · 0.80
startMethod · 0.80
startMethod · 0.80
startMethod · 0.80
startMethod · 0.80
startMethod · 0.80
startMethod · 0.80
startServerMethod · 0.80
startMethod · 0.80
startMethod · 0.80

Calls 5

addMethod · 0.95
sandboxMethod · 0.95
setMethod · 0.65
finishMethod · 0.45
pathMethod · 0.45

Tested by 15

beforeMethod · 0.64
runMethod · 0.64
startMethod · 0.64
startMethod · 0.64
startMethod · 0.64
startMethod · 0.64
startMethod · 0.64
startMethod · 0.64
startMethod · 0.64
startServerMethod · 0.64
startMethod · 0.64
startMethod · 0.64