The configuration file of MyBatchFramework is my-batch-fwk.properties.
Name | Type | Required | Description |
mbf.batch.className | string | yes | The class name of the batch implementation. |
mbf.batch.executionReportClassName | string | no | The 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.deferredStart | boolean | no | Indicate a deferred start of the batch. If true, then the batch must be started manually though JMX. |
mbf.batch.stayAliveAfterShutdown | boolean | no | After 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.executeNewTasks | boolean | no | If false, a task for which the id isn't into the history will not been execute. Default is true. |
mbf.batch.executeCompletedTasks | boolean | no | If false, a task for which the id is into the history of the completed tasks will not been execute. Default is true. |
mbf.batch.executeFailedTasks | boolean | no | If false, a task for which the id is into the history of the failed tasks will not been execute. |
mbf.threadPool.minSize | integer | yes | The minimum size of thread pool (threads that execute tasks). Must be greater than zero. |
mbf.threadPool.maxSize | integer | yes | The maximum size of thread pool (threads that execute tasks). Must be greater or equals to the minSize attribute. |
mbf.threadPool.blockingQueueCapacity | integer | no | The 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.enable | boolean | no | Enable the schedule |
mbf.schedule.startDate | date | no | The 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.endDate | date | no | The 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.periodTime | integer | no | The period time to create periodic execution. Must be is milliseconds. |
mbf.schedule.numberOfLoop | integer | no | Number of loop for periodic execution. The period time must be defined. Must be greater than zero. |
mbf.jmx.enable | boolean | no | Registration of the MBean to the MBean server. |
mbf.jmx.enableNotifications | boolean | no | Enable notification of batch state change. |
mbf.executionHistory.className | boolean | no | The class name of the execution history implementation. |
Also, the batch can be configured manually from a set of Properties.