DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR
{column:width=80px|padding=0px}{column}{column}{column}
Method Summary
void
addCronJob(jobname, cronTimings, method)
Adds a cron job to the scheduler.
void
addCronJob(jobname, cronTimings, method, startDate)
Adds a cron job to the scheduler.
void
addCronJob(jobname, cronTimings, method, startDate, endDate)
Adds a cron job to the scheduler.
void
addCronJob(jobname, cronTimings, method, startDate, endDate, arguments)
Adds a cron job to the scheduler.
void
addJob(jobname, startDate, method)
Adds a job to the scheduler.
void
addJob(jobname, startDate, method, repeatInterval)
Adds a job to the scheduler.
void
addJob(jobname, startDate, method, repeatInterval, repeatCount)
Adds a job to the scheduler.
void
addJob(jobName, startDate, method, repeatInterval, repeatCount, endDate)
Adds a job to the scheduler.
void
addJob(jobname, startDate, method, repeatInterval, repeatCount, endDate, arguments)
Adds a job to the scheduler.
void
addJob(jobname, startDate, method, arguments)
Adds a job to the scheduler.
String[]
getCurrentJobNames()
Returns an array with the current jobs.
getLastRunJobName()
Returns the last job run from the scheduler.
{column:width=100%|padding=0px}{column}
Method Details
void
addCronJob
(jobname, cronTimings, method)
Returns
void
Sample
// see: http://www.quartz-scheduler.org/docs/tutorials/crontrigger.html for more info // add a job that runs every 20 minutes after the hour (0,20,40) plugins.scheduler.addCronJob('20mins','0 0/20 * * * ?',method) // add a job that runs every day at 23:30 between now and 5 days from now var dateNow = new Date(); var date5Days = new Date(dateNow.getTime()+5*24*60*60*1000); plugins.scheduler.addCronJob('23:30','0 30 23 ? * *',method,dateNow,date5Days)
void
addCronJob
(jobname, cronTimings, method, startDate)
Returns
void
Sample
// see: http://www.quartz-scheduler.org/docs/tutorials/crontrigger.html for more info // add a job that runs every 20 minutes after the hour (0,20,40) plugins.scheduler.addCronJob('20mins','0 0/20 * * * ?',method) // add a job that runs every day at 23:30 between now and 5 days from now var dateNow = new Date(); var date5Days = new Date(dateNow.getTime()+5*24*60*60*1000); plugins.scheduler.addCronJob('23:30','0 30 23 ? * *',method,dateNow,date5Days)
void
addCronJob
(jobname, cronTimings, method, startDate, endDate)
Returns
void
Sample
// see: http://www.quartz-scheduler.org/docs/tutorials/crontrigger.html for more info // add a job that runs every 20 minutes after the hour (0,20,40) plugins.scheduler.addCronJob('20mins','0 0/20 * * * ?',method) // add a job that runs every day at 23:30 between now and 5 days from now var dateNow = new Date(); var date5Days = new Date(dateNow.getTime()+5*24*60*60*1000); plugins.scheduler.addCronJob('23:30','0 30 23 ? * *',method,dateNow,date5Days)
void
addCronJob
(jobname, cronTimings, method, startDate, endDate, arguments)
Returns
void
Sample
// see: http://www.quartz-scheduler.org/docs/tutorials/crontrigger.html for more info // add a job that runs every 20 minutes after the hour (0,20,40) plugins.scheduler.addCronJob('20mins','0 0/20 * * * ?',method) // add a job that runs every day at 23:30 between now and 5 days from now var dateNow = new Date(); var date5Days = new Date(dateNow.getTime()+5*24*60*60*1000); plugins.scheduler.addCronJob('23:30','0 30 23 ? * *',method,dateNow,date5Days)
void
addJob
(jobname, startDate, method)
Returns
void
Sample
// add a job that runs at the given date (20 seconds in the future) // and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call) var startDate = new Date(); startDate.setTime(startDate.getTime()+20000); var endDate = new Date(startDate.getTime()+100000); plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
void
addJob
(jobname, startDate, method, repeatInterval)
Returns
void
Sample
// add a job that runs at the given date (20 seconds in the future) // and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call) var startDate = new Date(); startDate.setTime(startDate.getTime()+20000); var endDate = new Date(startDate.getTime()+100000); plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
void
addJob
(jobname, startDate, method, repeatInterval, repeatCount)
Returns
void
Sample
// add a job that runs at the given date (20 seconds in the future) // and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call) var startDate = new Date(); startDate.setTime(startDate.getTime()+20000); var endDate = new Date(startDate.getTime()+100000); plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
void
addJob
(jobName, startDate, method, repeatInterval, repeatCount, endDate)
Returns
void
Sample
// add a job that runs at the given date (20 seconds in the future) // and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call) var startDate = new Date(); startDate.setTime(startDate.getTime()+20000); var endDate = new Date(startDate.getTime()+100000); plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
void
addJob
(jobname, startDate, method, repeatInterval, repeatCount, endDate, arguments)
Returns
void
Sample
// add a job that runs at the given date (20 seconds in the future) // and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call) var startDate = new Date(); startDate.setTime(startDate.getTime()+20000); var endDate = new Date(startDate.getTime()+100000); plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
void
addJob
(jobname, startDate, method, arguments)
Returns
void
Sample
// add a job that runs at the given date (20 seconds in the future) // and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call) var startDate = new Date(); startDate.setTime(startDate.getTime()+20000); var endDate = new Date(startDate.getTime()+100000); plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
String[]
getCurrentJobNames
()
Sample
plugins.scheduler.getCurrentJobNames()
getLastRunJobName
()
Sample
plugins.scheduler.getLastRunJobName();
removeJob
(jobname)
Sample
// removes a job 'myjob' from the scheduler plugins.scheduler.removeJob('myjob');