Skip to main content

[jsr352-public] Where is CheckpointAlgorithm.beginCheckpoint invoked?

  • From: Cheng Fang < >
  • To:
  • Subject: [jsr352-public] Where is CheckpointAlgorithm.beginCheckpoint invoked?
  • Date: Tue, 04 Mar 2014 11:19:15 -0500

I just got a bug report ( JBERET-52 <https://issues.jboss.org/browse/JBERET-52>) regarding the invocation sequence of CheckpointAlgorithm#beginCheckpoint, and would like to get some clarification.

From spec 11.10 Chunk with Custom Checkpoint Processing, CheckpointAlgorithm.beginCheckpoint happens immediately before commiting checkpoint transaction (on page 120).

The javadoc http://docs.oracle.com/javaee/7/api/javax/batch/api/chunk/CheckpointAlgorithm.html#beginCheckpoint() <http://docs.oracle.com/javaee/7/api/javax/batch/api/chunk/CheckpointAlgorithm.html#beginCheckpoint%28%29> says:
The beginCheckpoint method is invoked before the next checkpoint interval begins, which implies this method is to be called before beginning the whole chunk interval or range, which is much earlier than its invocation point specified in spec 11.10.

RI seems to implement it following section 11.10, from my quick look at ChunkStepControllerImpl.java

Another source of confusion, as described in the bug description, section 11.8 has the phrase "begin checkpoint" to mean the beginning of a chunk. Since this is the same words as the method name of CheckpointAlgorithm.beginCheckpoint(), users may think it also refers to the point to call CheckpointAlgorithm.beginCheckpoint().

Appreciate any clarification and guidance in this case.

Cheng


[jsr352-public] Where is CheckpointAlgorithm.beginCheckpoint invoked?

Cheng Fang 03/04/2014

[jsr352-public] Re: Where is CheckpointAlgorithm.beginCheckpoint invoked?

Scott Kurz 03/04/2014

[jsr352-public] Re: Where is CheckpointAlgorithm.beginCheckpoint invoked?

Cheng Fang 03/05/2014

Message not available

[jsr352-public] Re: Where is CheckpointAlgorithm.beginCheckpoint invoked?

Scott Kurz 03/24/2014

[jsr352-public] Re: Where is CheckpointAlgorithm.beginCheckpoint invoked?

Brent Douglas 03/24/2014

[jsr352-public] Re: Where is CheckpointAlgorithm.beginCheckpoint invoked?

Scott Kurz 03/24/2014

[jsr352-public] Re: Where is CheckpointAlgorithm.beginCheckpoint invoked?

Cheng Fang 03/25/2014
 
 
Close
loading
Please Confirm
Close