org.oddjob.quartz
Class CronSchedule
java.lang.Object
org.oddjob.framework.BaseComponent
org.oddjob.framework.BasePrimary
org.oddjob.quartz.CronSchedule
- All Implemented Interfaces:
- Iconic, QuartzSchedule, java.io.Serializable, Stateful
- public class CronSchedule
- extends BasePrimary
- implements java.io.Serializable, Stateful, QuartzSchedule
- Description:
- The schedule component the
QuartzSchedulerJob creates to handle a
CronScheduleInstruction schedule instruction.
- See Also:
- Serialized Form
- Author:
- Rob Gordon.
|
Method Summary |
java.lang.String |
getExpression()
|
void |
scheduleWith(org.quartz.Scheduler scheduler)
The Scheduler will call this method to allow this schedule to
schedule itself useing the scheduler. |
void |
setComponentRegistry(ComponentRegistry componentRegistry)
|
void |
setExpression(java.lang.String expression)
|
void |
setId(java.lang.String id)
Set the id for this schedule. |
void |
setJob(java.lang.Runnable job)
|
java.lang.String |
toString()
Override toString. |
void |
unscheduleFrom(org.quartz.Scheduler scheduler)
The schedule will call this method to stop scheduling a schedule. |
| Methods inherited from class org.oddjob.framework.BaseComponent |
addIconListener, addJobStateListener, addPropertyChangeListener, arooaRuntime, arooaRuntime, canHardReset, canSoftReset, configure, destroy, getLocation, iconForId, lastJobStateEvent, onDestroy, removeIconListener, removeJobStateListener, removePropertyChangeListener, setJobStateComplete, setJobStateException, setJobStateNotComplete |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CronSchedule
public CronSchedule()
scheduleWith
public void scheduleWith(org.quartz.Scheduler scheduler)
throws org.quartz.SchedulerException
- Description copied from interface:
QuartzSchedule
- The Scheduler will call this method to allow this schedule to
schedule itself useing the scheduler.
- Specified by:
scheduleWith in interface QuartzSchedule
- Parameters:
scheduler - The scheduler.
- Throws:
org.quartz.SchedulerException - If the schedule can't be scheduled.
unscheduleFrom
public void unscheduleFrom(org.quartz.Scheduler scheduler)
throws org.quartz.SchedulerException
- Description copied from interface:
QuartzSchedule
- The schedule will call this method to stop scheduling a schedule.
- Specified by:
unscheduleFrom in interface QuartzSchedule
- Parameters:
scheduler - The scheduler.
- Throws:
org.quartz.SchedulerException - If the schedule can't be unscheduled.
setId
public void setId(java.lang.String id)
- Set the id for this schedule. This will be set when the schedule is
created and can't be changed.
- Parameters:
id - The id.
setComponentRegistry
public void setComponentRegistry(ComponentRegistry componentRegistry)
- Specified by:
setComponentRegistry in interface QuartzSchedule
- Parameters:
componentRegistry -
setJob
public void setJob(java.lang.Runnable job)
toString
public java.lang.String toString()
- Description copied from class:
BasePrimary
- Override toString.
- Overrides:
toString in class BasePrimary
getExpression
public java.lang.String getExpression()
- Returns:
- Returns the expression.
setExpression
public void setExpression(java.lang.String expression)
- Parameters:
expression - The expression to set.