Table Head (thead) |
---|
Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
|
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 * * * ?', |
|
|
|
| globalMethodmethod)
// 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 ? * *', |
|
|
|
| globalMethodmethod,dateNow,date5Days) |
|
|
|
|
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=30F99684-0497-46E6-9F1E-2CDC6EC16253}{tr:id=name}{td}h6.addJob{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addJob{span}{span:id=iets|style=float: left;}\(jobname, startDate, globalMethod, repeatInterval(ms), repeatCount, endDate, arguments]]/ [arguments){span}{td}{tr}{tr:id=des}{td}{sub-section:30F99684-0497-46E6-9F1E-2CDC6EC16253_des|text=|trigger=button}{sub-section}{sub-section:30F99684-0497-46E6-9F1E-2CDC6EC16253_des|trigger=none|class=sIndent}Adds a job to the scheduler.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:30F99684-0497-46E6-9F1E-2CDC6EC16253_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:30F99684-0497-46E6-9F1E-2CDC6EC16253_prs|trigger=none}jobname
startDate
globalMethod
\[repeatInterval(ms)\]
\[repeatCount\]
\[endDate\]
\[arguments]]/ [arguments\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:30F99684-0497-46E6-9F1E-2CDC6EC16253_ret|text=|trigger=button}{sub-section}{sub-section:30F99684-0497-46E6-9F1E-2CDC6EC16253_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:30F99684-0497-46E6-9F1E-2CDC6EC16253_see|text=|trigger=button}{sub-section}{sub-section:30F99684-0497-46E6-9F1E-2CDC6EC16253_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:30F99684-0497-46E6-9F1E-2CDC6EC16253_see|text=|trigger=button}{sub-section}{sub-section:30F99684-0497-46E6-9F1E-2CDC6EC16253_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:30F99684-0497-46E6-9F1E-2CDC6EC16253_sam|text=|trigger=button}{sub-section}{sub-section:30F99684-0497-46E6-9F1E-2CDC6EC16253_sam|class=sIndent|trigger=none}{code:language=javascript}
// 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,globalMethod,20000,40,endDate)
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=CB006F64-7931-435A-9DDC-20645117EC09}{tr:id=name}{td}h6.getCurrentJobNames{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getCurrentJobNames{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:CB006F64-7931-435A-9DDC-20645117EC09_des|text=|trigger=button}{sub-section}{sub-section:CB006F64-7931-435A-9DDC-20645117EC09_des|trigger=none|class=sIndent}Returns an array with the current jobs.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:CB006F64-7931-435A-9DDC-20645117EC09_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CB006F64-7931-435A-9DDC-20645117EC09_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:CB006F64-7931-435A-9DDC-20645117EC09_ret|text=|trigger=button}{sub-section}{sub-section:CB006F64-7931-435A-9DDC-20645117EC09_ret|trigger=none|class=sIndent}[String]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CB006F64-7931-435A-9DDC-20645117EC09_see|text=|trigger=button}{sub-section}{sub-section:CB006F64-7931-435A-9DDC-20645117EC09_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CB006F64-7931-435A-9DDC-20645117EC09_see|text=|trigger=button}{sub-section}{sub-section:CB006F64-7931-435A-9DDC-20645117EC09_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CB006F64-7931-435A-9DDC-20645117EC09_sam|text=|trigger=button}{sub-section}{sub-section:CB006F64-7931-435A-9DDC-20645117EC09_sam|class=sIndent|trigger=none}{code:language=javascript}
// Returns an array of current jobnames
plugins.scheduler.getCurrentJobNames()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=70BFB83C-67EF-49B1-A958-9DD3C0CDD156}{tr:id=name}{td}h6.getLastRunJobName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getLastRunJobName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:70BFB83C-67EF-49B1-A958-9DD3C0CDD156_des|text=|trigger=button}{sub-section}{sub-section:70BFB83C-67EF-49B1-A958-9DD3C0CDD156_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:70BFB83C-67EF-49B1-A958-9DD3C0CDD156_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:70BFB83C-67EF-49B1-A958-9DD3C0CDD156_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:70BFB83C-67EF-49B1-A958-9DD3C0CDD156_ret|text=|trigger=button}{sub-section}{sub-section:70BFB83C-67EF-49B1-A958-9DD3C0CDD156_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:70BFB83C-67EF-49B1-A958-9DD3C0CDD156_see|text=|trigger=button}{sub-section}{sub-section:70BFB83C-67EF-49B1-A958-9DD3C0CDD156_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:70BFB83C-67EF-49B1-A958-9DD3C0CDD156_see|text=|trigger=button}{sub-section}{sub-section:70BFB83C-67EF-49B1-A958-9DD3C0CDD156_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:70BFB83C-67EF-49B1-A958-9DD3C0CDD156_sam|text=|trigger=button}{sub-section}{sub-section:70BFB83C-67EF-49B1-A958-9DD3C0CDD156_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E7716A8F-A9ED-4945-A54F-FF09475814A0}{tr:id=name}{td}h6.removeJob{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}removeJob{span}{span:id=iets|style=float: left;}\(jobname){span}{td}{tr}{tr:id=des}{td}{sub-section:E7716A8F-A9ED-4945-A54F-FF09475814A0_des|text=|trigger=button}{sub-section}{sub-section:E7716A8F-A9ED-4945-A54F-FF09475814A0_des|trigger=none|class=sIndent}Removes a job from the scheduler.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:E7716A8F-A9ED-4945-A54F-FF09475814A0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E7716A8F-A9ED-4945-A54F-FF09475814A0_prs|trigger=none}jobname
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:E7716A8F-A9ED-4945-A54F-FF09475814A0_ret|text=|trigger=button}{sub-section}{sub-section:E7716A8F-A9ED-4945-A54F-FF09475814A0_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E7716A8F-A9ED-4945-A54F-FF09475814A0_see|text=|trigger=button}{sub-section}{sub-section:E7716A8F-A9ED-4945-A54F-FF09475814A0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E7716A8F-A9ED-4945-A54F-FF09475814A0_see|text=|trigger=button}{sub-section}{sub-section:E7716A8F-A9ED-4945-A54F-FF09475814A0_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E7716A8F-A9ED-4945-A54F-FF09475814A0_sam|text=|trigger=button}{sub-section}{sub-section:E7716A8F-A9ED-4945-A54F-FF09475814A0_sam|class=sIndent|trigger=none}{code:language=javascript}
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') |
|
|
|
|
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table} |