Class AbstractBatchHandler

    • Field Detail

      • BATCH_HANDLER_NAME

        public static final String BATCH_HANDLER_NAME
        Transient store key for the batch handler name.
        See Also:
        Constant Field Values
      • transientStoreName

        protected String transientStoreName
    • Constructor Detail

      • AbstractBatchHandler

        public AbstractBatchHandler()
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: BatchHandler
        Gets the batch handler's name.
        Specified by:
        getName in interface BatchHandler
        Returns:
        the batch handler's name
      • initialize

        public void initialize​(String name,
                               Map<String,​String> properties)
        Description copied from interface: BatchHandler
        Initializes this batch handler with the given name and configuration properties.
        Specified by:
        initialize in interface BatchHandler
        Parameters:
        name - the batch handler's name
        properties - the configuration properties
      • initialize

        protected void initialize​(Map<String,​String> properties)
      • getBatchParameters

        protected Map<String,​Serializable> getBatchParameters​(String batchId)
        Gets the batch parameters, or null if the batch is not found.
      • newBatch

        public Batch newBatch​(String batchId)
        Description copied from interface: BatchHandler
        Initiates a new batch with an optional externally provided id.
        Specified by:
        newBatch in interface BatchHandler
        Parameters:
        batchId - the id to use for the batch, or null to generate it
        Returns:
        a newly created batch
      • generateBatchId

        protected String generateBatchId()