Examples of QueryHistory


Examples of org.cyclop.model.QueryHistory

      tasks.add(new Callable<Void>() {

        @Override
        public Void call() throws Exception {
          for (int i = 0; i < repeatInTest; i++) {
            QueryHistory history = historyService.read();
            histories.add(history);

            QueryEntry histEntry = new QueryEntry(new CqlQuery(CqlQueryType.SELECT,
                "select * from MyTable2 where id=" + UUID.randomUUID()), 4000 + i);
            history.add(histEntry);

            verifyHistEntry(history, histEntry);

            historyService.store(history);
            if (i % 20 == 0) {
              asyncFileStore.flush();
            }

            QueryHistory readHist = historyService.read();
            verifyHistEntry(readHist, histEntry);

            executedCount.incrementAndGet();
            assertEquals(0, storage.getLockRetryCount());
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.