private int doExpungeEverythingQuery(String theQuery) { StopWatch sw = new StopWatch(); int outcome = myEntityManager.createQuery(theQuery).executeUpdate(); if (outcome > 0) { ourLog.debug("Query affected {} rows in {}: {}", outcome, sw.toString(), theQuery); } else { ourLog.debug("Query affected {} rows in {}: {}", outcome, sw.toString(), theQuery); } return outcome; }
ourLog.info("Updated {} rows on {} in {}", theRows.size(), getTableName(), sw.toString()); }; return myExecutor.submit(task);
theServletResponse.getWriter().append(writeSw.toString()); theServletResponse.getWriter().append("</div>");
String timing = " in " + theResponse.getRequestStopWatch().toString(); myLog.info("Client response: {}{}{}", message, respLocation, timing);
Validate.notNull(range); int count = range.getNumberOfElements(); ourLog.info("Loaded {} resources for reindexing in {}", count, pageSw.toString()); }); ourLog.info("Completed pass of reindex JOB[{}] - Indexed {} resources in {} ({} / sec) - Have indexed until: {}", theJob.getId(), count, sw.toString(), sw.formatThroughput(count, TimeUnit.SECONDS), newLow); return counter.get();
private int doExpungeEverythingQuery(String theQuery) { StopWatch sw = new StopWatch(); int outcome = myEntityManager.createQuery(theQuery).executeUpdate(); if (outcome > 0) { ourLog.debug("Query affected {} rows in {}: {}", outcome, sw.toString(), theQuery); } else { ourLog.debug("Query affected {} rows in {}: {}", outcome, sw.toString(), theQuery); } return outcome; }
theServletResponse.getWriter().append(writeSw.toString()); theServletResponse.getWriter().append("</div>");
String timing = " in " + theResponse.getRequestStopWatch().toString(); myLog.info("Client response: {}{}{}", message, respLocation, timing);
Validate.notNull(range); int count = range.getNumberOfElements(); ourLog.info("Loaded {} resources for reindexing in {}", count, pageSw.toString()); }); ourLog.info("Completed pass of reindex JOB[{}] - Indexed {} resources in {} ({} / sec) - Have indexed until: {}", theJob.getId(), count, sw.toString(), sw.formatThroughput(count, TimeUnit.SECONDS), newLow); return counter.get();