Interface ScheduledActionDefinition
-
- All Superinterfaces:
org.springframework.beans.factory.InitializingBean
- All Known Implementing Classes:
AbstractScheduledAction,CronScheduledQueryBasedTemplateActionDefinition
public interface ScheduledActionDefinition extends org.springframework.beans.factory.InitializingBeanThe information needed to schedule a job. The implementation is responsible for creating job details, triggers and registering with a scheduler. This is not used anywhere at the moment. When we have a service then scheduled actions will be registered with the service.- Author:
- Andy Hind
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetJobGroup()Get the job group - used for job adminjava.lang.StringgetJobName()Get the name of the job - used for job adminTemplateActionDefinitiongetTemplateActionDefinition()Get the template action definition that is used to build the Action to execute.java.lang.StringgetTriggerGroup()Get the trigger group - used for job adminjava.lang.StringgetTriggerName()Get the trigger name - used for job adminvoidregister(org.quartz.Scheduler scheduler)Register with a scheduler.voidsetJobGroup(java.lang.String jobGroup)Set the job group - used for job adminvoidsetJobName(java.lang.String jobName)Set the name of the job - used for job adminvoidsetTemplateActionDefinition(TemplateActionDefinition templateActionDefinition)Set the template action definition that is used to build the Action to execute.voidsetTriggerGroup(java.lang.String triggerGroup)Set the trigger group - used for job adminvoidsetTriggerName(java.lang.String triggerName)Set the trigger name - used for job admin
-
-
-
Method Detail
-
setTemplateActionDefinition
void setTemplateActionDefinition(TemplateActionDefinition templateActionDefinition)
Set the template action definition that is used to build the Action to execute.- Parameters:
templateActionDefinition- TemplateActionDefinition
-
getTemplateActionDefinition
TemplateActionDefinition getTemplateActionDefinition()
Get the template action definition that is used to build the Action to execute.- Returns:
- - the template action definition.
-
register
void register(org.quartz.Scheduler scheduler) throws org.quartz.SchedulerExceptionRegister with a scheduler. This should be called in the implementation afterPropertiesSet() method of InitializingBean- Parameters:
scheduler- Scheduler- Throws:
org.quartz.SchedulerException
-
setJobName
void setJobName(java.lang.String jobName)
Set the name of the job - used for job admin- Parameters:
jobName- String
-
getJobName
java.lang.String getJobName()
Get the name of the job - used for job admin- Returns:
- - the job name
-
setJobGroup
void setJobGroup(java.lang.String jobGroup)
Set the job group - used for job admin- Parameters:
jobGroup- String
-
getJobGroup
java.lang.String getJobGroup()
Get the job group - used for job admin- Returns:
- - the job group.
-
setTriggerName
void setTriggerName(java.lang.String triggerName)
Set the trigger name - used for job admin- Parameters:
triggerName- String
-
getTriggerName
java.lang.String getTriggerName()
Get the trigger name - used for job admin- Returns:
- - the trigger name.
-
setTriggerGroup
void setTriggerGroup(java.lang.String triggerGroup)
Set the trigger group - used for job admin- Parameters:
triggerGroup- String
-
getTriggerGroup
java.lang.String getTriggerGroup()
Get the trigger group - used for job admin- Returns:
- - the trigger group.
-
-