Skip to content

Dynanic Job Scheduling with Quartz and Spring

License

Notifications You must be signed in to change notification settings

checkme5/quartz-manager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quartz Manager

Dynanic Job Scheduling with Quartz and Spring. To understand what is happening in this project read the blog post at:

http://juliuskrah.com/tutorial/2017/09/26/dynamic-job-scheduling-with-quartz-and-spring/

for a comprehensive overview.

Branches

Branch Notes
master Implementation without database
v1.x Implementation with database
v2.x Implementation with error handling
v3.x Implementation with Spring WebFlux
v4.x Implementation with Functional Spring WebFlux

Spring WebFlux

Checkout this branch for a reactive version of the source

Quick Start

> mvnw clean spring-boot:run

Features

CREATE
Method : POST: /api/v1.0/groups/:group/jobs
Status : 201: Created
Body :

{
  "name": "manager",
  "subject": "Daily Fuel Report",
  "messageBody": "Sample fuel report",
  "to": ["[email protected]", "[email protected]"],
  "triggers":
    [
       {
         "name": "manager",
         "group": "email",
         "fireTime": "2017-10-02T22:00:00.000"
       }
    ]
}

Content-Type: application/json

VIEW
Method : GET: /api/v1.0/groups/:group/jobs/:name
Status : 200: Ok
Body : NULL
Accept : application/json

UPDATE
Method : PUT: /api/v1.0/groups/:group/jobs/:name
Status : 204: No Content
Body :

{
  "name": "manager",
  "subject": "Daily Fuel Report",
  "messageBody": "Sample fuel report",
  "to" : ["[email protected]", "[email protected]"],
  "cc" : ["[email protected]", "[email protected]"],
  "bcc": ["[email protected]"]
}

Content-Type: application/json

UPDATE (Pause)
Method : PATCH: /api/v1.0/groups/:group/jobs/:name/pause
Status : 204: No Content
Body : NULL
Content-Type: */*

UPDATE (Resume)
Method : PATCH: /api/v1.0/groups/:group/jobs/:name/resume
Status : 204: No Content
Body : NULL
Content-Type: */*

DELETE
Method : DELETE: /api/v1.0/groups/:group/jobs/:name
Status : 204: No Content
Body : NULL
Content-Type: */*

About

Dynanic Job Scheduling with Quartz and Spring

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%