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

Method close

basex-api/src/main/java/org/basex/http/HTTPContext.java:146–159  ·  view source on GitHub ↗

Closes the database context.

()

Source from the content-addressed store, hash-verified

144 * Closes the database context.
145 */
146 public synchronized void close() {
147 if(server != null) {
148 try {
149 server.stop();
150 } catch(final IOException ex) {
151 Util.stack(ex);
152 }
153 server = null;
154 }
155 if(context != null) {
156 context.close();
157 context = null;
158 }
159 }
160}

Callers

nothing calls this directly

Calls 3

stackMethod · 0.95
closeMethod · 0.65
stopMethod · 0.45

Tested by

no test coverage detected