|
21 | 21 | * A Job report is used to report status on a {@link WriteBatcher} or a {@link QueryBatcher} |
22 | 22 | * job at any point of time after it is started and provide a |
23 | 23 | * 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> |
24 | 30 | */ |
25 | 31 | public interface JobReport { |
26 | 32 | /** |
27 | 33 | * {@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 |
29 | 35 | * @return the number of events that succeeded |
30 | 36 | */ |
31 | 37 | long getSuccessEventsCount(); |
32 | 38 | /** |
33 | 39 | * {@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) |
35 | 41 | * @return the number of events that failed |
36 | 42 | */ |
37 | 43 | long getFailureEventsCount(); |
38 | 44 | /** |
39 | 45 | * {@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 |
41 | 47 | * @return the number of batches that succeeded |
42 | 48 | */ |
43 | 49 | long getSuccessBatchesCount(); |
44 | 50 | /** |
45 | 51 | * {@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) |
47 | 53 | * @return the number of batches that failed |
48 | 54 | */ |
49 | 55 | long getFailureBatchesCount(); |
|
0 commit comments