Package com.avoka.core.util
Class QuartzUtils
- java.lang.Object
-
- com.avoka.core.util.QuartzUtils
-
public class QuartzUtils extends Object
Provided Quartz scheduler utility methods.- Since:
- 4.3.7
-
-
Field Summary
Fields Modifier and Type Field Description static String
FC_GROUP_NAME
The group name for TM jobs
-
Constructor Summary
Constructors Constructor Description QuartzUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Date
scheduleCronJob(org.quartz.Scheduler scheduler, org.quartz.JobDetail jobDetail, String cronExpression)
Schedule a schedule cron job to start immedately.static Date
scheduleCronJob(org.quartz.Scheduler scheduler, org.quartz.JobDetail jobDetail, Date startDate, Date endDate, String cronExpression)
Perform a schedule cron jobstatic Date
scheduleSimpleJob(org.quartz.Scheduler scheduler, org.quartz.JobDetail jobDetail, long repeatInterval)
Schedule a simple job to start immediately and repeat forever.static Date
scheduleSimpleJob(org.quartz.Scheduler scheduler, org.quartz.JobDetail jobDetail, Date startDate, Date endDate, int repeatCount, long repeatInterval)
Schedule a simple job
-
-
-
Field Detail
-
FC_GROUP_NAME
public static final String FC_GROUP_NAME
The group name for TM jobs- See Also:
- Constant Field Values
-
-
Method Detail
-
scheduleSimpleJob
public static Date scheduleSimpleJob(org.quartz.Scheduler scheduler, org.quartz.JobDetail jobDetail, long repeatInterval)
Schedule a simple job to start immediately and repeat forever.- Parameters:
scheduler
- the quartz scheduler (required)jobDetail
- job details (required)repeatInterval
- the repeat interval- Returns:
- the schedule date
-
scheduleSimpleJob
public static Date scheduleSimpleJob(org.quartz.Scheduler scheduler, org.quartz.JobDetail jobDetail, Date startDate, Date endDate, int repeatCount, long repeatInterval)
Schedule a simple job- Parameters:
scheduler
- the quartz scheduler (required)jobDetail
- job details (required)startDate
- start date of the jobendDate
- end date of the jobrepeatCount
- the repeat countrepeatInterval
- the repeat interval- Returns:
- the schedule date
-
scheduleCronJob
public static Date scheduleCronJob(org.quartz.Scheduler scheduler, org.quartz.JobDetail jobDetail, String cronExpression)
Schedule a schedule cron job to start immedately.- Parameters:
scheduler
- the quartz scheduler (required)jobDetail
- job details (required)cronExpression
- the cron expression for this cron job (required)- Returns:
- the schedule date
-
scheduleCronJob
public static Date scheduleCronJob(org.quartz.Scheduler scheduler, org.quartz.JobDetail jobDetail, Date startDate, Date endDate, String cronExpression)
Perform a schedule cron job- Parameters:
scheduler
- the quartz scheduler (required)jobDetail
- job details (required)startDate
- start date of the jobendDate
- end date of the jobcronExpression
- the cron expression for this cron job (required)- Returns:
- the schedule date
-
-