Class QuartzEndpoint
java.lang.Object
org.springframework.boot.actuate.quartz.QuartzEndpoint
Endpoint
to expose Quartz Scheduler jobs and triggers.- Since:
- 2.5.0
- Author:
- Vedran Pavic, Stephane Nicoll
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A description of aCalendarIntervalTrigger
.static final class
A description of aCronTrigger
.static final class
A description of a customTrigger
.static final class
A description of aDailyTimeIntervalTrigger
.static class
A set of group names, primarily intended for serialization to JSON.static class
A summary for each group identified by name, primarily intended for serialization to JSON.static final class
Details of aQuartz Job
, primarily intended for serialization to JSON.static final class
A summary report of thejobs
in a given group.static final class
Details of aQuartz Job
, primarily intended for serialization to JSON.static final class
A report of available job and trigger group names, primarily intended for serialization to JSON.static final class
A summary report of thetriggers
in a given group.static final class
A description of aSimpleTrigger
.static class
Base class for descriptions of aTrigger
. -
Constructor Summary
ConstructorDescriptionQuartzEndpoint
(org.quartz.Scheduler scheduler) Create an instance for the specifiedScheduler
using a defaultSanitizer
.QuartzEndpoint
(org.quartz.Scheduler scheduler, Sanitizer sanitizer) Create an instance for the specifiedScheduler
andSanitizer
. -
Method Summary
Modifier and TypeMethodDescriptionReturn thedetails of the job
identified with the given group name and job name.Return the available job names, identified by group name.quartzJobGroupSummary
(String group) Return a summary of the jobs group with the specified name ornull
if no such group exists.Return the available job and trigger group names.quartzTrigger
(String groupName, String triggerName) Return the details of the trigger identified by the given group name and trigger name.Return the available trigger names, identified by group name.quartzTriggerGroupSummary
(String group) Return a summary of the triggers group with the specified name ornull
if no such group exists.
-
Constructor Details
-
QuartzEndpoint
public QuartzEndpoint(org.quartz.Scheduler scheduler) Create an instance for the specifiedScheduler
using a defaultSanitizer
.- Parameters:
scheduler
- the scheduler to use to retrieve jobs and triggers details
-
QuartzEndpoint
Create an instance for the specifiedScheduler
andSanitizer
.- Parameters:
scheduler
- the scheduler to use to retrieve jobs and triggers detailssanitizer
- the sanitizer to use to sanitize data maps
-
-
Method Details
-
quartzReport
@ReadOperation public QuartzEndpoint.QuartzReport quartzReport() throws org.quartz.SchedulerExceptionReturn the available job and trigger group names.- Returns:
- a report of the available group names
- Throws:
org.quartz.SchedulerException
- if retrieving the information from the scheduler failed
-
quartzJobGroups
Return the available job names, identified by group name.- Returns:
- the available job names
- Throws:
org.quartz.SchedulerException
- if retrieving the information from the scheduler failed
-
quartzTriggerGroups
Return the available trigger names, identified by group name.- Returns:
- the available trigger names
- Throws:
org.quartz.SchedulerException
- if retrieving the information from the scheduler failed
-
quartzJobGroupSummary
public QuartzEndpoint.QuartzJobGroupSummary quartzJobGroupSummary(String group) throws org.quartz.SchedulerException Return a summary of the jobs group with the specified name ornull
if no such group exists.- Parameters:
group
- the name of a jobs group- Returns:
- a summary of the jobs in the given
group
- Throws:
org.quartz.SchedulerException
- if retrieving the information from the scheduler failed
-
quartzTriggerGroupSummary
public QuartzEndpoint.QuartzTriggerGroupSummary quartzTriggerGroupSummary(String group) throws org.quartz.SchedulerException Return a summary of the triggers group with the specified name ornull
if no such group exists.- Parameters:
group
- the name of a triggers group- Returns:
- a summary of the triggers in the given
group
- Throws:
org.quartz.SchedulerException
- if retrieving the information from the scheduler failed
-
quartzJob
public QuartzEndpoint.QuartzJobDetails quartzJob(String groupName, String jobName) throws org.quartz.SchedulerException Return thedetails of the job
identified with the given group name and job name.- Parameters:
groupName
- the name of the groupjobName
- the name of the job- Returns:
- the details of the job or
null
if such job does not exist - Throws:
org.quartz.SchedulerException
- if retrieving the information from the scheduler failed
-
quartzTrigger
public Map<String,Object> quartzTrigger(String groupName, String triggerName) throws org.quartz.SchedulerException Return the details of the trigger identified by the given group name and trigger name.- Parameters:
groupName
- the name of the grouptriggerName
- the name of the trigger- Returns:
- the details of the trigger or
null
if such trigger does not exist - Throws:
org.quartz.SchedulerException
- if retrieving the information from the scheduler failed
-