clojurewerkz.quartzite.scheduler

add-job

(add-job scheduler job-detail replace)(add-job scheduler job-detail)
Adds given job to the scheduler with no associated trigger

add-scheduler-listener

(add-scheduler-listener scheduler listener)
Registers a schedule listener. Use it to hook into Quartz scheduler events

add-trigger

(add-trigger scheduler trigger)
Adds given trigger to the scheduled job with which the trigger has been associated

all-scheduled?

(all-scheduled? scheduler & keys)
Returns true if all provided keys (trigger or job) are scheduled

clear!

(clear! scheduler)
Resets the scheduler by clearing all triggers and jobs from it

currently-executing-job?

(currently-executing-job? scheduler key)
Returns true if there is currently executing job for the given key

delete-job

(delete-job scheduler key)
Deletes the identified job and all triggers associated with it from the scheduler

delete-jobs

(delete-jobs scheduler keys)
Remove all of the indicated jobs (and associated triggers) from the scheduler. Bulk equivalent of delete-job

delete-trigger

(delete-trigger scheduler key)
Removes the indicated trigger from the scheduler. If the related job does not have any other triggers,
and the job is not durable, then the job will also be deleted

delete-triggers

(delete-triggers scheduler keys)
Remove all of the indicated triggers from the scheduler

get-currently-executing-jobs

(get-currently-executing-jobs scheduler key)
Returns a set of JobExecutionContext that represent the currently executing jobs for a given key

get-job

(get-job scheduler key)(get-job scheduler group key)
Returns a JobDetail instance for the given key.

get-job-group-names

(get-job-group-names scheduler)
Get the names of all known JobDetail groups.

get-job-keys

(get-job-keys scheduler gm)
Returns a set of keys that match the given group matcher. Commonly used with the functions in the clojurewerkz.quartzite.matchers.*
namespace.

get-jobs

(get-jobs scheduler keys)
Returns a set of JobDetail instances for the given collection of keys.

get-matching-jobs

(get-matching-jobs scheduler gm)
Returns a set of JobDetail instances with keys that match the given group matcher.
Commonly used with the functions in the clojurewerkz.quartzite.matchers.* namespace.

get-matching-triggers

(get-matching-triggers scheduler gm)
Returns a set of Trigger instances with keys that match the given group matcher.
Commonly used with the functions in the clojurewerkz.quartzite.matchers.* namespace.

get-trigger

(get-trigger scheduler key)(get-trigger scheduler group key)
Returns a Trigger instance for the given key.

get-trigger-group-names

(get-trigger-group-names scheduler)
Get the names of all known Trigger  groups.

get-trigger-keys

(get-trigger-keys scheduler gm)
Returns a set of keys that match the given group matcher. Commonly used with the functions in the clojurewerkz.quartzite.matchers.*
namespace.

get-triggers

(get-triggers scheduler keys)
Returns a set of Trigger instances for the given collection of keys.

get-triggers-of-job

(get-triggers-of-job scheduler key)
Returns a set of Trigger instances for the given collection of keys.

initialize

(initialize)
Initializes a scheduler.

maybe-schedule

(maybe-schedule scheduler job-detail trigger)
Adds given job to the scheduler and associates it with given trigger but only if they
are not already known to the scheduler.

Like schedule but avoids org.quartz.ObjectAlreadyExistsException by checking if keys of
provided job and trigger are already scheduled and do not need to be scheduled again

pause-all!

(pause-all! scheduler)
Pauses all triggers and jobs

pause-job

(pause-job scheduler key)
Pauses a job with the given key

pause-jobs

(pause-jobs scheduler matcher)
Pauses a group of jobs

pause-trigger

(pause-trigger scheduler key)
Pauses a trigger with the given key

pause-triggers

(pause-triggers scheduler matcher)
Pauses a group of triggers

resume-all!

(resume-all! scheduler)
Resumes all paused triggers and jobs

resume-job

(resume-job scheduler key)
Resumes a job with the given key

resume-jobs

(resume-jobs scheduler matcher)
Resumes a group of jobs

resume-trigger

(resume-trigger scheduler key)
Resumes a trigger with the given key

resume-triggers

(resume-triggers scheduler matcher)
Resumes a group of triggers

schedule

(schedule scheduler job-detail trigger)
Adds given job to the scheduler and associates it with given trigger.
Trigger controls job execution schedule, initial execution time and other characteristics

scheduled?

(scheduled? scheduler key)
Checks if entity with given key already exists within the scheduler

shutdown

(shutdown scheduler)(shutdown scheduler wait-for-jobs-to-complete)
Shuts scheduler down, releasing all the resources associated with it. When passed true causes scheduler
to wait for running jobs to complete before shutting down

shutdown?

(shutdown? scheduler)
Returns true if the scheduler has been shut down, false otherwise

standby

(standby scheduler)
Puts scheduler in standby mode. When in scheduler is standby mode, no triggers will fire

standby?

(standby? scheduler)
Returns true if the scheduler is in standby mode, false otherwise

start

(start scheduler)
Starts Quartzite's scheduler. Newly initialized scheduler is not active (in standby mode),
this function starts it

start-delayed

(start-delayed scheduler seconds)
Starts Quartzite's scheduler after a delay in seconds

started?

(started? scheduler)
Returns true if the scheduler has been ever started, false otherwise

trigger

(trigger scheduler jk)
Returns trigger for given key