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

Method createClient

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

Creates a client instance. @param login optional login data @return client instance @throws IOException I/O exception

(final String... login)

Source from the content-addressed store, hash-verified

570 * @throws IOException I/O exception
571 */
572 public static ClientSession createClient(final String... login) throws IOException {
573 final String username = login.length > 0 ? login[0] : UserText.ADMIN;
574 final String password = login.length > 1 ? login[1] : NAME;
575 return new ClientSession(S_LOCALHOST, DB_PORT, username, password);
576 }
577
578 /**
579 * Returns the sandbox database path.

Callers 15

startMethod · 0.80
setUpMethod · 0.80
startMethod · 0.80
killMethod · 0.80
clientServerMethod · 0.80
concurrentClientsMethod · 0.80
startSessionMethod · 0.80
startMethod · 0.80
runQueriesMethod · 0.80
SandboxClientMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by 15

startMethod · 0.64
setUpMethod · 0.64
startMethod · 0.64
killMethod · 0.64
clientServerMethod · 0.64
concurrentClientsMethod · 0.64
startSessionMethod · 0.64
startMethod · 0.64
runQueriesMethod · 0.64
runMethod · 0.64
runMethod · 0.64
runMethod · 0.64