Configuration

The configuration file of MyBatchFramework is my-batch-fwk.properties.

NameTypeRequiredDescription
mbf.batch.classNamestringyesThe class name of the batch implementation.
mbf.batch.executionReportClassNamestringnoThe class name of the execution report. User can create his own execution report to store extra informations about the completions and the failures.
mbf.batch.deferredStartbooleannoIndicate a deferred start of the batch. If true, then the batch must be started manually though JMX.
mbf.batch.stayAliveAfterShutdownbooleannoAfter the end of the batch, the main thread can sleep to allow the visualization of attributes though JMX. If true, then the batch must be stopped manually though JMX.
mbf.batch.executeNewTasksbooleannoIf false, a task for which the id isn't into the history will not been execute. Default is true.
mbf.batch.executeCompletedTasksbooleannoIf false, a task for which the id is into the history of the completed tasks will not been execute. Default is true.
mbf.batch.executeFailedTasksbooleannoIf false, a task for which the id is into the history of the failed tasks will not been execute.
mbf.threadPool.minSizeintegeryesThe minimum size of thread pool (threads that execute tasks). Must be greater than zero.
mbf.threadPool.maxSizeintegeryesThe maximum size of thread pool (threads that execute tasks). Must be greater or equals to the minSize attribute.
mbf.threadPool.blockingQueueCapacityintegernoThe capacity of the blocking queue (that contains the tasks before to be executed). When this capacity is reached the batch waits automatically for space before to offer a new task to the TaskExecutor.
mbf.schedule.enablebooleannoEnable the schedule
mbf.schedule.startDatedatenoThe start date of the batch to delay the execution. The schedule must be enable. Must be into the format : yyyy/MM/dd HH:mm:ss z
mbf.schedule.endDatedatenoThe end date of the batch to fix a limit to the periodic execution. The period time must be defined. Must be into the format : yyyy/MM/dd HH:mm:ss z
mbf.schedule.periodTimeintegernoThe period time to create periodic execution. Must be is milliseconds.
mbf.schedule.numberOfLoopintegernoNumber of loop for periodic execution. The period time must be defined. Must be greater than zero.
mbf.jmx.enablebooleannoRegistration of the MBean to the MBean server.
mbf.jmx.enableNotificationsbooleannoEnable notification of batch state change.
mbf.executionHistory.classNamebooleannoThe class name of the execution history implementation.
Configuration attributes

Also, the batch can be configured manually from a set of Properties.