Klasse JobEntryQuartz
java.lang.Object
org.apache.turbine.services.schedule.JobEntryQuartz
- Alle implementierten Schnittstellen:
Comparable<JobEntry>
,JobEntry
,org.quartz.Job
This implements a Turbine scheduled job model for the
QuartzScheduler
.- Autor:
- Thomas Vandahl
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final String
the default Quartz schedule group name for Turbine jobs -
Konstruktorübersicht
KonstruktorBeschreibungDefault constructorJobEntryQuartz
(org.quartz.Trigger jobTrigger) ConstructorJobEntryQuartz
(org.quartz.Trigger jobTrigger, org.quartz.JobDetail jobDetail) Constructor -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Calculate how long before the next runtime.int
void
execute
(org.quartz.JobExecutionContext context) org.quartz.JobDetail
int
getJobId()
Get the value of jobId.org.quartz.Trigger
Get the next runtime for this job as a String.Gets the next runtime as a datelong
Get the next runtime for this job as a long.getTask()
Get the value of task.boolean
isActive()
Check to see if job is currently active/runningboolean
isNew()
Return true, if the entry is not yet persistedvoid
setActive
(boolean isActive) Sets whether the job is running.void
setJobId
(int v) Set the value of jobId.void
setJobTrigger
(org.quartz.Trigger jobTrigger) void
Set the value of task.
-
Felddetails
-
DEFAULT_JOB_GROUP_NAME
the default Quartz schedule group name for Turbine jobs- Siehe auch:
-
-
Konstruktordetails
-
JobEntryQuartz
public JobEntryQuartz()Default constructor -
JobEntryQuartz
Constructor- Parameter:
jobTrigger
- Job time table
-
JobEntryQuartz
Constructor- Parameter:
jobTrigger
- Job time tablejobDetail
- job details
-
-
Methodendetails
-
isNew
Return true, if the entry is not yet persisted -
getJobId
Get the value of jobId. -
setJobId
Set the value of jobId. -
getTask
Get the value of task. -
setTask
Set the value of task. -
getJobTrigger
- Gibt zurück:
- the jobTrigger
-
setJobTrigger
- Parameter:
jobTrigger
- the jobTrigger to set
-
getJobDetail
- Gibt zurück:
- the jobDetail
-
compareTo
- Angegeben von:
compareTo
in SchnittstelleComparable<JobEntry>
- Siehe auch:
-
setActive
Beschreibung aus Schnittstelle kopiert:JobEntry
Sets whether the job is running. -
isActive
Beschreibung aus Schnittstelle kopiert:JobEntry
Check to see if job is currently active/running -
getNextRuntime
Beschreibung aus Schnittstelle kopiert:JobEntry
Get the next runtime for this job as a long.- Angegeben von:
getNextRuntime
in SchnittstelleJobEntry
- Gibt zurück:
- The next run time as a long.
- Siehe auch:
-
getNextRunDate
Beschreibung aus Schnittstelle kopiert:JobEntry
Gets the next runtime as a date- Angegeben von:
getNextRunDate
in SchnittstelleJobEntry
- Gibt zurück:
- Next run date
- Siehe auch:
-
getNextRunAsString
Beschreibung aus Schnittstelle kopiert:JobEntry
Get the next runtime for this job as a String.- Angegeben von:
getNextRunAsString
in SchnittstelleJobEntry
- Gibt zurück:
- The next run time as a String.
- Siehe auch:
-
calcRunTime
Beschreibung aus Schnittstelle kopiert:JobEntry
Calculate how long before the next runtime.
The runtime determines it's position in the job queue. Here's the logic:
1. Create a date the represents when this job is to run.
2. If this date has expired, them "roll" appropriate date fields forward to the next date.
3. Calculate the diff in time between the current time and the next run time.- Angegeben von:
calcRunTime
in SchnittstelleJobEntry
- Löst aus:
TurbineException
- a generic exception.- Siehe auch:
-
execute
- Angegeben von:
execute
in Schnittstelleorg.quartz.Job
- Löst aus:
org.quartz.JobExecutionException
- Siehe auch:
-