|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.core.EntityObject org.figure8.join.services.scheduling.QuartzCronInfo
public class QuartzCronInfo
Cron object containing info on how to create and schedule a Quartz job.
Constructor Summary | |
---|---|
QuartzCronInfo()
Creates a new QuarzCron instance. |
|
QuartzCronInfo(java.lang.String name,
java.lang.String cronExpression,
java.lang.String jobType,
java.lang.String jobClass)
Build a new instance with mandatory attributes. |
Method Summary | |
---|---|
void |
addJobParameterInfo(QuartzCronParameterInfo paramInfo)
Convenient method for adding a job parameter info to a cron. |
java.lang.Class |
checkJobClass()
Try to instanciate wrapped job. |
org.quartz.JobDetail |
createJobDetail()
Create a Quartz JobDetail object from this Cron informations |
java.lang.String |
getCronExpression()
|
java.lang.String |
getJobClass()
|
java.util.List |
getJobParameterInfos()
|
java.lang.String |
getJobType()
|
java.lang.String |
getName()
|
void |
setCronExpression(java.lang.String cronExpression)
|
void |
setJobClass(java.lang.String jobClass)
Give the FQN of Java class used for instanciating a Job |
void |
setJobParameterInfos(java.util.List paramInfos)
|
void |
setJobType(java.lang.String jobType)
|
void |
setName(java.lang.String name)
|
Methods inherited from class org.figure8.join.core.EntityObject |
---|
clone, equals, getId, hashCode, isTransient |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuartzCronInfo()
public QuartzCronInfo(java.lang.String name, java.lang.String cronExpression, java.lang.String jobType, java.lang.String jobClass) throws InvalidParameterException
name
- The cron name.cronExpression
- The cron expression.jobType
- The job type name.jobClass
- The job class name to execute.
InvalidParameterException
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public java.lang.String getCronExpression()
public void setCronExpression(java.lang.String cronExpression)
cronExpression
- The cronExpression to set.public java.lang.String getJobType()
public void setJobType(java.lang.String jobType)
jobType
- The jobType to set.public java.lang.String getJobClass()
public void setJobClass(java.lang.String jobClass) throws InvalidParameterException
jobClass
- The name of java class implementing job
InvalidParameterException
- if the consumerBeanClass is not an instance of Job
public java.util.List getJobParameterInfos()
QuartzCronParameterInfo
s for this cron definitionpublic void setJobParameterInfos(java.util.List paramInfos)
paramInfos
- A set of QuartzCronParameterInfo
spublic void addJobParameterInfo(QuartzCronParameterInfo paramInfo)
paramInfo
- The parameter info to add to quartz cron definitionpublic java.lang.Class checkJobClass() throws InvalidParameterException
InvalidParameterException
- if jobClass is not valid.public org.quartz.JobDetail createJobDetail() throws InvalidParameterException
JobDetail
object or null if no job class is specified
InvalidParameterException
- if the job class cannot be found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |