Table Body (tbody) |
---|
id | addCronJob-String_String_Function |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
addCronJob |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(jobname, cronTimings, method) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Adds a cron job to the scheduler. A cron job must have at least one minute between each execution (otherwise it won't execute). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // 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) |
|
|
|
|
Table Body (tbody) |
---|
id | addCronJob-String_String_Function_Date |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
addCronJob |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(jobname, cronTimings, method, startDate) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Adds a cron job to the scheduler. A cron job must have at least one minute between each execution (otherwise it won't execute). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // 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) |
|
|
|
|
Table Body (tbody) |
---|
id | addCronJob-String_String_Function_Date_Date |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
addCronJob |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(jobname, cronTimings, method, startDate, endDate) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Adds a cron job to the scheduler. A cron job must have at least one minute between each execution (otherwise it won't execute). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // 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) |
|
|
|
|
Table Body (tbody) |
---|
id | addCronJob-String_String_Function_Date_Date_ObjectArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
addCronJob |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(jobname, cronTimings, method, startDate, endDate, arguments) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Adds a cron job to the scheduler. A cron job must have at least one minute between each execution (otherwise it won't execute). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // 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) |
|
|
|
|
Table Body (tbody) |
---|
id | addJob-String_Date_Function |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(jobname, startDate, method) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Adds a job to the scheduler. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // 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) |
|
|
|
|
Table Body (tbody) |
---|
id | addJob-String_Date_Function_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(jobname, startDate, method, repeatInterval) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Adds a job to the scheduler. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // 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) |
|
|
|
|
Table Body (tbody) |
---|
id | addJob-String_Date_Function_Number_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(jobname, startDate, method, repeatInterval, repeatCount) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Adds a job to the scheduler. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // 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) |
|
|
|
|
Table Body (tbody) |
---|
id | addJob-String_Date_Function_Number_Number_Date |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(jobName, startDate, method, repeatInterval, repeatCount, endDate) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Adds a job to the scheduler. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // 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) |
|
|
|
|
Table Body (tbody) |
---|
id | addJob-String_Date_Function_Number_Number_Date_ObjectArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(jobname, startDate, method, repeatInterval, repeatCount, endDate, arguments) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Adds a job to the scheduler. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // 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) |
|
|
|
|
Table Body (tbody) |
---|
id | addJob-String_Date_Function_ObjectArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(jobname, startDate, method, arguments) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Adds a job to the scheduler. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // 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) |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getCurrentJobNames |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns an array with the current jobs. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| plugins.scheduler.getCurrentJobNames() |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getLastRunJobName |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the last job run from the scheduler. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| plugins.scheduler.getLastRunJobName(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Removes a job from the scheduler. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // removes a job 'myjob' from the scheduler
plugins.scheduler.removeJob('myjob'); |
|
|
|
|
|