Class CheckPointAlgorithm

  • All Implemented Interfaces:
    javax.batch.api.chunk.CheckpointAlgorithm

    @Dependent
    public class CheckPointAlgorithm
    extends Object
    implements javax.batch.api.chunk.CheckpointAlgorithm
    Bulk export Chunk implementation - custom checkpoint algorithm.
    • Field Detail

      • stepCtx

        @Inject
        javax.batch.runtime.context.StepContext stepCtx
      • cosBucketFileMaxResources

        @Inject
        String cosBucketFileMaxResources
        The file resources number limit when exporting to multiple COS files.
      • cosBucketFileMaxSize

        @Inject
        String cosBucketFileMaxSize
        The file size limit (in bytes) when exporting to multiple COS files.
    • Constructor Detail

      • CheckPointAlgorithm

        public CheckPointAlgorithm()
        Default constructor.
    • Method Detail

      • checkpointTimeout

        public int checkpointTimeout()
        Specified by:
        checkpointTimeout in interface javax.batch.api.chunk.CheckpointAlgorithm
      • endCheckpoint

        public void endCheckpoint()
        Specified by:
        endCheckpoint in interface javax.batch.api.chunk.CheckpointAlgorithm
      • beginCheckpoint

        public void beginCheckpoint()
        Specified by:
        beginCheckpoint in interface javax.batch.api.chunk.CheckpointAlgorithm
      • isReadyToCheckpoint

        public boolean isReadyToCheckpoint()
        Specified by:
        isReadyToCheckpoint in interface javax.batch.api.chunk.CheckpointAlgorithm