Home
last modified time | relevance | path

Searched refs:numConnections (Results 1 – 1 of 1) sorted by relevance

/libcore/luni/src/test/java/tests/java/sql/
DStressTest.java209 int numConnections = getConnectionNum(); in testInsertOfManyRowsUsingManyThreads() local
210 int tasksPerConnection = Support_SQL.sqlMaxTasks / numConnections; in testInsertOfManyRowsUsingManyThreads()
212 Logger.global.info("Opening "+numConnections+" to database "+Support_SQL.getFilename()); in testInsertOfManyRowsUsingManyThreads()
214 ThreadPool threadPool = new ThreadPool(numConnections); in testInsertOfManyRowsUsingManyThreads()
216 for (int i = 0; i < numConnections; ++i) { in testInsertOfManyRowsUsingManyThreads()
218 threadPool.runTask(insertTask(numConnections, i)); in testInsertOfManyRowsUsingManyThreads()
223 assertEquals("Unable to create a connection", numConnections, vc.size()); in testInsertOfManyRowsUsingManyThreads()
233 * numConnections, rs.getInt("counter")); in testInsertOfManyRowsUsingManyThreads()
307 private Runnable insertTask(final int numConnections, final int taskID) {
319 / numConnections;