BEAST
|
The scheduler within beast. More...
Public Member Functions | |
BeastScheduler () | |
Constructor. | |
synchronized void | setSchedulerFactoryBean (SchedulerFactoryBean sf) |
Sets the scheduler factory bean. | |
void | setMessageManager (IBltMessageManager mgr) |
void | setJdbcTemplate (JdbcOperations template) |
synchronized void | afterPropertiesSet () throws Exception |
synchronized void | destroy () throws Exception |
int | register (String expression, String name) |
void | reregister (int id, String expression, String name) |
void | unregister (int id) |
List< CronEntry > | getSchedule () |
List< CronEntry > | getSchedule (String job) |
CronEntry | getEntry (int id) |
Static Public Member Functions | |
static void | main (String[] args) |
Protected Member Functions | |
SchedulerFactoryBean | createScheduleFactory () |
Creates a SchedulerFactoryBean. | |
CronTrigger | createTrigger (CronEntry entry, JobDetail jobDetail) |
Creates the cron trigger. | |
void | scheduleJob (CronEntry entry) |
void | rescheduleJob (int id, CronEntry entry) |
Reschedules the job. | |
JobDetail | registerJob (String jobName) throws org.quartz.SchedulerException |
Creates a job detail. | |
CronEntry | createCronEntry (String expression, String name) |
Returns a new instance of cron entry. | |
NamedParameterJdbcTemplate | getNamedParameterTemplate () |
BeanPropertySqlParameterSource | getParameterSource (CronEntry entry) |
Creates a parameter source from an entry. | |
GeneratedKeyHolder | createKeyHolder () |
JobDetailFactoryBean | createJob (String jobName) |
Creates a job detail bean. | |
RowMapper< CronEntry > | getScheduleMapper () |
CronEntry | doMapRow (ResultSet rs, int rownum) throws SQLException |
Maps one resultset into a cron entry. | |
The scheduler within beast.
The scheduler works like any other IBltMessage producer and sends BltScheduledJobMessage's. This means that in order to handle scheduled jobs the appropriate rule must be supporting this.
You ought to specify jobName (rule name) in order to get the correct rule executed instead of the ordinary broadcast but that is up to you.
|
inline |
Constructor.
|
inline |
|
inlineprotected |
Returns a new instance of cron entry.
expression | the cron expression |
name | the name |
|
inlineprotected |
Creates a job detail bean.
jobName | the job name |
|
inlineprotected |
|
inlineprotected |
Creates a SchedulerFactoryBean.
Remember to call afterPropertiesSet on it.
|
inlineprotected |
Creates the cron trigger.
entry | the entry to create a cron trigger from |
|
inline |
|
inlineprotected |
Maps one resultset into a cron entry.
rs | the result set |
rownum | the row number |
SQLException | on error |
|
inline |
|
inlineprotected |
|
inlineprotected |
Creates a parameter source from an entry.
entry | the entry |
|
inline |
|
inline |
Implements eu.baltrad.beast.scheduler.IBeastScheduler.
|
inlineprotected |
|
inline |
Implements eu.baltrad.beast.scheduler.IBeastScheduler.
|
inlineprotected |
|
inline |
Implements eu.baltrad.beast.scheduler.IBeastScheduler.
|
inlineprotected |
Reschedules the job.
id | the id of the trigger to be rescheduled |
entry | the job |
SchedulerException |
|
inline |
template | the template |
|
inline |
mgr | the message manager to set |
|
inline |
Sets the scheduler factory bean.
sf | the factory bean |
|
inline |