Codota Logo
JobReport
Code IndexAdd Codota to your IDE (free)

How to use
JobReport
in
com.marklogic.client.datamovement

Best Java code snippets using com.marklogic.client.datamovement.JobReport (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: marklogic/java-client-api

 public String getSummaryReport() {
  JobReport report = moveMgr.getJobReport(ticket);
  return "batches: " + report.getSuccessBatchesCount() +
   ", docs: "       + report.getSuccessEventsCount() +
   ", failures: "   + report.getFailureEventsCount();
 }
}
origin: marklogic/java-client-api

assertTrue("Job Report should return null for end timestamp", report.getJobEndTime() == null);
moveMgr.stopJob(ticket.getBatcher());
assertTrue("Batch has incorrect timestamp=" + batchDate.getTime() + " should be between " +
 minTime + " and " + maxTime, batchDate.getTime() >= minTime && batchDate.getTime() <= maxTime);
Date reportDate = report.getReportTimestamp().getTime();
Date reportStartDate = report.getJobStartTime().getTime();
Date reportEndDate = report.getJobEndTime().getTime();
assertTrue("Job Report has incorrect start timestamp", reportStartDate.getTime() >= minTime &&
 reportStartDate.getTime() <= reportStartTime);
 reportEndDate.getTime() <= maxTime);
assertTrue("Job Report has incorrect timestamp", reportDate.getTime() >= minTime && reportDate.getTime() <= maxTime);
assertEquals("Job Report has incorrect successful batch counts", successfulBatchCount.get(),report.getSuccessBatchesCount());
assertEquals("Job Report has incorrect successful event counts", totalResults.get(),report.getSuccessEventsCount());
assertEquals("Job Report has incorrect failure batch counts", failureBatchCount.get(), report.getFailureBatchesCount());
assertEquals("Job Report has incorrect failure events counts", failureBatchCount.get(), report.getFailureEventsCount());
origin: marklogic/java-client-api

 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());
origin: marklogic/marklogic-data-hub

long jobCount = report.getSuccessEventsCount();
response.totalJobs = jobCount;
  long traceCount = report.getSuccessEventsCount();
  response.totalTraces = traceCount;
origin: marklogic/java-client-api

Date reportDate = report.getReportTimestamp().getTime();
assertTrue("Job Report has incorrect timestamp", reportDate.getTime() >= minTime && reportDate.getTime() <= maxTime);
assertEquals("Job Report has incorrect successful batch counts", successfulBatchCount.get(),report.getSuccessBatchesCount());
assertEquals("Job Report has incorrect successful event counts", successfulCount.get(),report.getSuccessEventsCount());
assertEquals("Job Report has incorrect failure batch counts", failureBatchCount.get(), report.getFailureBatchesCount());
assertEquals("Job Report has incorrect failure events counts", failureCount.get(), report.getFailureEventsCount());
com.marklogic.client.datamovementJobReport

Javadoc

A Job report is used to report status on a WriteBatcher or a QueryBatcherjob at any point of time after it is started and provide a snapshot of the job's status at that time.

Most used methods

  • getSuccessEventsCount
    WriteBatcher : gets the number of documents written to the database QueryBatcher : gets the number o
  • getFailureBatchesCount
    WriteBatcher : gets the number of batches that the job failed to write QueryBatcher : gets the numbe
  • getFailureEventsCount
    WriteBatcher : gets the number of documents that were sent but failed to write QueryBatcher : gets t
  • getJobEndTime
    Gets the timestamp at which WriteBatcher or QueryBatcherfinished the job
  • getJobStartTime
    Gets the timestamp at which WriteBatcher or QueryBatcherstarted the job
  • getReportTimestamp
    Gets the timestamp at which this instance of JobReport was created
  • getSuccessBatchesCount
    WriteBatcher : gets the number of batches written to the database QueryBatcher : gets the number of

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now