Package org.fbsql.servlet
Class RunnableJob
- java.lang.Object
-
- org.fbsql.servlet.RunnableJob
-
- All Implemented Interfaces:
org.quartz.Job
public class RunnableJob extends java.lang.Object implements org.quartz.Job
Represent a 'job' to be performed.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
KEY_RUNNABLE
Key used to store Runnable in JobDataMap
-
Constructor Summary
Constructors Constructor Description RunnableJob()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(org.quartz.JobExecutionContext jobContext)
Called by the Scheduler when a Trigger fires that is associated with the Job.private static java.lang.String
toIso(java.util.Date date)
Convert Date to ISO-8601 String
-
-
-
Field Detail
-
KEY_RUNNABLE
public static final java.lang.String KEY_RUNNABLE
Key used to store Runnable in JobDataMap- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RunnableJob
public RunnableJob()
-
-
Method Detail
-
execute
public void execute(org.quartz.JobExecutionContext jobContext) throws org.quartz.JobExecutionException
Called by the Scheduler when a Trigger fires that is associated with the Job.- Specified by:
execute
in interfaceorg.quartz.Job
- Throws:
org.quartz.JobExecutionException
-
toIso
private static java.lang.String toIso(java.util.Date date)
Convert Date to ISO-8601 String- Parameters:
date
-- Returns:
-
-