A simple JSON api which launch/stop/monitor your spring-batch. With backward compatibility for spring-batch-admin
A demo is running on heroku
socle-batch | JDK | spring-boot | spring-batch-core |
---|---|---|---|
0.7-SNAPSHOT | 17 | 2.6.1 | 4.3.4 |
0.6 | 17 | 2.6.1 | 4.3.4 |
0.5 | 11 | 2.4.0 | 4.3.0 |
0.4 | 11 | 2.2.11.RELEASE | 4.2.4.RELEASE |
0.3 | 11 | 2.1.14.RELEASE | 4.1.14.RELEASE |
0.2 | 11 | 2.1.2.RELEASE | 4.1.1.RELEASE |
You can use the springbatch-example as a starter project
Add this in your pom.xml
<dependency>
<groupId>net.tisseurdetoile.batch</groupId>
<artifactId>springbatch-socle-jsonapi</artifactId>
<version>0.6-SNAPSHOT</version>
</dependency>
Add the @EnableSpringBatchSocleApi annotation in your main class
@SpringBootApplication
@EnableSpringBatchSocleApi
public class SampleApplication {
public static void main(String[] args) {
SpringApplication.run(SampleApplication.class, args);
}
}
some minimal command :
- List all job : curl -s -X GET https://socle-batch.herokuapp.com/jobs/
- Launch a Job : curl -s -X POST https://socle-batch.herokuapp.com/jobs/SampleJob.json
- Monitor Job Execution : curl -s -X GET https://socle-batch.herokuapp.com/executions/1.json
- Stop a Job Execution : curl -s -X DELETE https://socle-batch.herokuapp.com/executions/1.json
For more detail see the springbatch-example project
👤 Le TisseurDeToile
- Website: http://www.tisseurdetoile.net
- Twitter: @tisseurdetoile
- Github: @tisseurDeToile
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Give a ⭐️ if this project helped you!
Copyright © 2020 Le TisseurDeToile.
This project is GPLv3 licensed.
This README was generated with ❤️ by readme-md-generator