Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ public static WebArchive createDeployment() {

/**
* In the test, we're just going to invoke the batch execution and wait for completion. To validate the test
* expected behaviour we need to query the +Metric[]+ object available in the step execution and also verify if the
* listeners were executed correctly via a +CountDownLatch+ wait.
* expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution and
* also verify if the listeners were executed correctly via a +CountDownLatch+ wait.
*
* The batch process itself will read and process 10 elements from numbers 1 to 10, but only write the odd
* elements.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public static WebArchive createDeployment() {

/**
* In the test, we're just going to invoke the batch execution and wait for completion. To validate the test
* expected behaviour we just need to check the Batch Status in the +JbExecution+ object. We should get a
* +BatchStatus.COMPLETED+.
* expected behaviour we just need to check the Batch Status in the +javax.batch.runtime.JobExecution+ object. We
* should get a +javax.batch.runtime.BatchStatus.COMPLETED+.
*
* @throws Exception an exception if the batch could not complete successfully.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static WebArchive createDeployment() {

/**
* In the test, we're just going to invoke the batch execution and wait for completion. To validate the test
* expected behaviour we need to query the +Metric[]+ object available in the step execution.
* expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution.
*
* The batch process itself will read and process 10 elements from numbers 1 to 10, but only write the odd
* elements. Commits are executed after 5 elements are read by the custom checkpoint algorithm.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static WebArchive createDeployment() {

/**
* In the test, we're just going to invoke the batch execution and wait for completion. To validate the test
* expected behaviour we need to query the +Metric[]+ object available in the step execution.
* expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution.
*
* The batch process itself will read and write 7 elements of type +Person+. Commits are executed after 3 elements
* are read.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@
* * +MyRetryProcessorListener+
* * +MyRetryWriteListener+
*
* Events can be caught via extending the following classes, for the appropriate batch lifecycle event:
*
* * +javax.batch.api.chunk.listener.SkipReadListener+
* * +javax.batch.api.chunk.listener.SkipProcessListener+
* * +javax.batch.api.chunk.listener.SkipWriteListener+
* * +javax.batch.api.chunk.listener.RetryReadListener+
* * +javax.batch.api.chunk.listener.RetryProcessListener+
* * +javax.batch.api.chunk.listener.RetryWriteListener+
*
* include::myJob.xml[]
*
* A very simple job is defined in the +myJob.xml+ file. Just a single step with a reader, a processor and a writer. For
Expand Down Expand Up @@ -93,7 +102,7 @@ public static WebArchive createDeployment() {

/**
* In the test, we're just going to invoke the batch execution and wait for completion. To validate the test
* expected behaviour we need to query the +Metric[]+ object available in the step execution.
* expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution.
*
* @throws Exception an exception if the batch could not complete successfully.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static WebArchive createDeployment() {

/**
* In the test, we're just going to invoke the batch execution and wait for completion. To validate the test
* expected behaviour we need to query the +Metric[]+ object available in the step execution.
* expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution.
*
* The batch process itself will read and process 20 elements from numbers 1 to 20, but only write the odd
* elements. Elements from 1 to 10 will be processed in one partition and elements from 11 to 20 in another
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static WebArchive createDeployment() {

/**
* In the test, we're just going to invoke the batch execution and wait for completion. To validate the test
* expected behaviour we need to query the +Metric[]+ object available in the step execution.
* expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution.
*
* The batch process itself will read 10 elements from numbers 1 to 10, and write the same elements. Commits are
* executed after 3 elements are read.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static WebArchive createDeployment() {

/**
* In the test, we're just going to invoke the batch execution and wait for completion. To validate the test
* expected behaviour we need to query the +Metric[]+ object available in the step execution.
* expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution.
*
* The batch process itself will read and process 20 elements from numbers 1 to 20, but only write the odd
* elements. Elements from 1 to 10 will be processed in one partition and elements from 11 to 20 in another
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class BatchChunkSimpleNoBeansTest {
*
* The +myJob.xml+ file is needed for running the batch definition. This sample is also missing the +beans.xml+ for
* CDI discovery, since for Java EE 7 this file is now optional, but you need to annotated batch dependent beans
* with +@Dependent+.
* with +javax.enterprise.context.Dependent+.
*/
@Deployment
public static WebArchive createDeployment() {
Expand All @@ -54,7 +54,7 @@ public static WebArchive createDeployment() {

/**
* In the test, we're just going to invoke the batch execution and wait for completion. To validate the test
* expected behaviour we need to query the +Metric[]+ object available in the step execution.
* expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution.
*
* The batch process itself will read and process 10 elements from numbers 1 to 10, but only write the odd
* elements. Commits are executed after 3 elements are read.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static WebArchive createDeployment() {

/**
* In the test, we're just going to invoke the batch execution and wait for completion. To validate the test
* expected behaviour we need to query the +Metric[]+ object available in the step execution.
* expected behaviour we need to query the +javax.batch.runtime.Metric+ object available in the step execution.
*
* The batch process itself will read and process 10 elements from numbers 1 to 10, but only write the odd
* elements. Commits are executed after 3 elements are read.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public static WebArchive createDeployment() {

/**
* In the test, we're just going to invoke the batch execution and wait for completion. To validate the test
* expected behaviour we need to query +JobOperator#getStepExecutions+ and the +Metric[]+ object available in the
* step execution.
* expected behaviour we need to query +javax.batch.operations.JobOperator#getStepExecutions+ and the
* +javax.batch.runtime.Metric+ object available in the step execution.
*
* @throws Exception an exception if the batch could not complete successfully.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public static WebArchive createDeployment() {

/**
* In the test, we're just going to invoke the batch execution and wait for completion. To validate the test
* expected behaviour we need to query +JobOperator#getStepExecutions+ and the +Metric[]+ object available in the
* step execution.
* expected behaviour we need to query +javax.batch.operations.JobOperator#getStepExecutions+ and the
* +javax.batch.runtime.Metric+ object available in the step execution.
*
* @throws Exception an exception if the batch could not complete successfully.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public static WebArchive createDeployment() {

/**
* In the test, we're just going to invoke the batch execution and wait for completion. To validate the test
* expected behaviour we need to query +JobOperator#getStepExecutions+ and the +Metric[]+ object available in the
* step execution.
* expected behaviour we need to query +javax.batch.operations.JobOperator#getStepExecutions+ and the
* +javax.batch.runtime.Metric+ object available in the step execution.
*
* @throws Exception an exception if the batch could not complete successfully.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static WebArchive createDeployment() {

/**
* In the test, we're just going to invoke the batch execution and wait for completion. To validate the test
* expected behaviour we need to query +JobOperator#getStepExecutions+.
* expected behaviour we need to query +javax.batch.operations.JobOperator#getStepExecutions+.
*
* @throws Exception an exception if the batch could not complete successfully.
*/
Expand Down