m_fixture = NanoSparqlServer.newInstance(0/* port */, getSail().getIndexManager(), initParams); final int port = NanoSparqlServer.getLocalPort(m_fixture);
queryThreadPoolSize = Integer.valueOf(s); if (queryThreadPoolSize < 0) { usage(1/* status */, "-nthreads must be non-negative, not: " + s); && !TimestampUtility.isCommitTime(readLock .longValue())) { usage(1/* status */, "Read lock must be commit time or -1 (MINUS ONE) to assert a read lock on the last commit time: " + readLock); jettyXml = args[++i]; } else { usage(1/* status */, "Unknown argument: " + arg); usage(1/* status */, nremaining < 3 ? "Too few arguments." : "Too many arguments"); port = Integer.valueOf(s); } catch (NumberFormatException ex) { usage(1/* status */, "Could not parse as port# : '" + s + "'"); final Server server = NanoSparqlServer.newInstance(port, jettyXml, awaitServerStart(server);
final URL jettyXmlURL = getEffectiveJettyXmlURL(classLoader, jettyXml); configureEffectiveResourceBase(classLoader); configureWebAppOverrides(server, indexManager, initParams);
final int actualPort = getLocalPort(server); String hostAddr = getHost();
SystemProperties.DEFAULT_JETTY_XML); return newInstance(port, jettyXml, indexManager, initParams);
final Server altfixture = newFixture(lnamespace); try { final int altport = NanoSparqlServer.getLocalPort(altfixture);
SystemProperties.DEFAULT_JETTY_XML); return newInstance(port, jettyXml, indexManager, initParams);
final int port = NanoSparqlServer.getLocalPort(m_fixture);
final int actualPort = getLocalPort(server); String hostAddr = getHost();
m_fixture = NanoSparqlServer.newInstance(0/* port */, m_indexManager, initParams); final int port = NanoSparqlServer.getLocalPort(m_fixture);
return newInstance(jettyXml, indexManager, initParams);
final int port = NanoSparqlServer.getLocalPort(m_fixture);
queryThreadPoolSize = Integer.valueOf(s); if (queryThreadPoolSize < 0) { usage(1/* status */, "-nthreads must be non-negative, not: " + s); && !TimestampUtility.isCommitTime(readLock .longValue())) { usage(1/* status */, "Read lock must be commit time or -1 (MINUS ONE) to assert a read lock on the last commit time: " + readLock); jettyXml = args[++i]; } else { usage(1/* status */, "Unknown argument: " + arg); usage(1/* status */, nremaining < 3 ? "Too few arguments." : "Too many arguments"); port = Integer.valueOf(s); } catch (NumberFormatException ex) { usage(1/* status */, "Could not parse as port# : '" + s + "'"); final Server server = NanoSparqlServer.newInstance(port, jettyXml, awaitServerStart(server);
final URL jettyXmlURL = getEffectiveJettyXmlURL(classLoader, jettyXml); configureEffectiveResourceBase(classLoader); configureWebAppOverrides(server, indexManager, initParams);
m_fixture = NanoSparqlServer.newInstance(0/* port */, getSail().getIndexManager(), initParams); final int port = NanoSparqlServer.getLocalPort(m_fixture);
return newInstance(jettyXml, indexManager, initParams);
final Server altfixture = newFixture(lnamespace); try { final int altport = NanoSparqlServer.getLocalPort(altfixture);
m_fixture = NanoSparqlServer.newInstance(0/* port */, m_indexManager, initParams); final int port = NanoSparqlServer.getLocalPort(m_fixture);
protected Server newFixture() throws Exception { final Properties properties = getProperties(); m_indexManager = new Journal(properties); // Create the triple store instance. AbstractApiTask.submitApiTask(m_indexManager, new CreateKBTask(m_namespace, properties)).get(); // createTripleStore(m_indexManager, m_namespace, properties); final Map<String, String> initParams = new LinkedHashMap<String, String>(); { initParams.put(ConfigParams.NAMESPACE, m_namespace); initParams.put(ConfigParams.CREATE, "false"); } // Start server for that kb instance. final Server fixture = NanoSparqlServer.newInstance(0/* port */, m_indexManager, initParams); fixture.start(); return fixture; }
final int port = NanoSparqlServer.getLocalPort(m_fixture);