Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.alfresco.util
Class CronTriggerBean
java.lang.Object
  org.alfresco.util.AbstractTriggerBean
      org.alfresco.util.CronTriggerBean
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.scheduling.quartz.JobDetailAwareTrigger, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.Aware, org.springframework.beans.factory.DisposableBean

@org.alfresco.api.AlfrescoPublicApi
public class CronTriggerBean
extends AbstractTriggerBean
A utility bean to wrap scheduling a cron job with a given scheduler.
Author:
Andy Hind

Fields inherited from class org.alfresco.util.AbstractTriggerBean
logger
Fields inherited from interface org.springframework.scheduling.quartz.JobDetailAwareTrigger
JOB_DETAIL_KEY
Constructor Summary
CronTriggerBean()
          Default constructor
Method Summary
void
afterPropertiesSet()
          Set the scheduler
getCronExpression()
          Get the cron expression that determines when this job is run.
long
getStartDelay()
org.quartz.Trigger
getTrigger()
          Build the cron trigger
void
setCronExpression(String cronExpression)
          Set the cron expression that determines when this job is run.
void
setStartDelay(long startDelay)
void
setStartDelayMinutes(long startDelayMinutes)
Methods inherited from class org.alfresco.util.AbstractTriggerBean
destroy, getBeanName, getJobDetail, getScheduler, isEnabled, setBeanName, setEnabled, setEnabledFromBean, setJobDetail, setScheduler
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
CronTriggerBean
public CronTriggerBean()
Default constructor
Method Detail
getCronExpression
public String getCronExpression()
Get the cron expression that determines when this job is run.
Returns:
The cron expression

setCronExpression
public void setCronExpression(String cronExpression)
Set the cron expression that determines when this job is run.

getTrigger
public org.quartz.Trigger getTrigger()
                              throws Exception
Build the cron trigger
Overrides:
getTrigger in class AbstractTriggerBean
Returns:
The trigger
Throws:
Exception

getStartDelay
public long getStartDelay()

setStartDelay
public void setStartDelay(long startDelay)

setStartDelayMinutes
public void setStartDelayMinutes(long startDelayMinutes)

afterPropertiesSet
public void afterPropertiesSet()
                        throws Exception
Description copied from class: AbstractTriggerBean
Set the scheduler
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class AbstractTriggerBean
Throws:
Exception

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2018 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.