public String getSummaryReport() { JobReport report = moveMgr.getJobReport(ticket); return "batches: " + report.getSuccessBatchesCount() + ", docs: " + report.getSuccessEventsCount() + ", failures: " + report.getFailureEventsCount(); } }
uris.addAll(Arrays.asList(batch.getItems())); batchCount.incrementAndGet(); if(moveMgr.getJobReport(queryTicket.get()).getSuccessEventsCount() > 40){ moveMgr.stopJob(queryTicket.get()); batcher.awaitCompletion(Long.MAX_VALUE, TimeUnit.DAYS); System.out.println("Success event: "+moveMgr.getJobReport(queryTicket.get()).getSuccessEventsCount()); System.out.println("Success batch: "+moveMgr.getJobReport(queryTicket.get()).getSuccessBatchesCount()); System.out.println("Failure event: "+moveMgr.getJobReport(queryTicket.get()).getFailureEventsCount()); System.out.println("Failure batch: "+moveMgr.getJobReport(queryTicket.get()).getFailureBatchesCount()); assertTrue(batchCount.get() == moveMgr.getJobReport(queryTicket.get()).getSuccessBatchesCount());
dmm.release(); JobReport report = dmm.getJobReport(jobTicket); long jobCount = report.getSuccessEventsCount(); response.totalJobs = jobCount; dmm.release(); report = dmm.getJobReport(jobTicket); long traceCount = report.getSuccessEventsCount(); response.totalTraces = traceCount;
assertEquals(queryBatcherJobName, ticket.getBatcher().getJobName()); JobReport report = moveMgr.getJobReport(ticket); report = moveMgr.getJobReport(ticket); long maxTime = new Date().getTime(); Date batchDate = batchTimestamp.get().getTime();
JobReport report = moveMgr.getJobReport(ticket); assertEquals("there should be " + successfulCount + " docs in the collection", successfulCount.get(), docs.getTotalSize()); report = moveMgr.getJobReport(ticket); long maxTime = new Date().getTime(); Date batchDate = batchTimestamp.get().getTime();