Skip to content

Commit ccf1df7

Browse files
authored
Merge pull request #1542 from marklogic/feature/361-jobReport-docs
DEVEXP-361 Improved javadocs for JobReport
2 parents 6bdcf57 + a085134 commit ccf1df7

File tree

1 file changed

+10
-4
lines changed
  • marklogic-client-api/src/main/java/com/marklogic/client/datamovement

1 file changed

+10
-4
lines changed

marklogic-client-api/src/main/java/com/marklogic/client/datamovement/JobReport.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,35 @@
2121
* A Job report is used to report status on a {@link WriteBatcher} or a {@link QueryBatcher}
2222
* job at any point of time after it is started and provide a
2323
* snapshot of the job's status at that time.
24+
* <p>
25+
* Note that for a query job, the counts of successful and failed events and batches only account for the process of
26+
* retrieving items from the database. They do not account for the processing of batches of items via user-provided
27+
* instances of {@link QueryBatchListener}. Such instances are responsible for determining their own definitions of
28+
* "success" and "failure". See {@link ApplyTransformListener} for an example of how this can be done.
29+
* </p>
2430
*/
2531
public interface JobReport {
2632
/**
2733
* {@link WriteBatcher} : gets the number of documents written to the database<br>
28-
* {@link QueryBatcher} : gets the number of uris processed from the database
34+
* {@link QueryBatcher} : gets the number of items retrieved from the database
2935
* @return the number of events that succeeded
3036
*/
3137
long getSuccessEventsCount();
3238
/**
3339
* {@link WriteBatcher} : gets the number of documents that were sent but failed to write<br>
34-
* {@link QueryBatcher} : gets the number of batches that failed to process (same as getFailureBatchesCount)
40+
* {@link QueryBatcher} : gets the number of batches that the job failed to retrieve (same as getFailureBatchesCount)
3541
* @return the number of events that failed
3642
*/
3743
long getFailureEventsCount();
3844
/**
3945
* {@link WriteBatcher} : gets the number of batches written to the database<br>
40-
* {@link QueryBatcher} : gets the number of batches processed from the database
46+
* {@link QueryBatcher} : gets the number of batches retrieved from the database
4147
* @return the number of batches that succeeded
4248
*/
4349
long getSuccessBatchesCount();
4450
/**
4551
* {@link WriteBatcher} : gets the number of batches that the job failed to write<br>
46-
* {@link QueryBatcher} : gets the number of batches that failed to process (same as getFailureEventsCount)
52+
* {@link QueryBatcher} : gets the number of batches that the job failed to retrieve (same as getFailureEventsCount)
4753
* @return the number of batches that failed
4854
*/
4955
long getFailureBatchesCount();

0 commit comments

Comments
 (0)