Confluence : Trigger Plugins
This page last changed on Jan 17, 2007 by jnolen.
Trigger plugin modules enable you to schedule when your Job Plugins are scheduled to run Confluence.
Trigger Plugin ModuleThe Trigger plugin module schedules Jobs within a plugin. Triggers are one of two types:
Here is an example atlassian-plugin.xml fragment containing a Job with it's corresponding Trigger module using a cron-style expression (for reference, this expression will execute the job with key 'myJob' every minute): <atlassian-plugin name="Sample Component" key="confluence.extra.component"> ... <job key="myJob" name="My Job" class="com.example.myplugin.jobs.MyJob" /> <trigger key="myTrigger" name="My Trigger"> <job key="myJob" /> <schedule cron-expression="0 * * * * ?" /> </trigger> ... </atlassian-plugin> For the <trigger> element:
For more details on the cron expressions, see the Quartz documentation for CronTrigger. Here is another example, this time using a simple trigger that repeats every 360000 seconds (1 hour) and will only repeat 5 times: ... <trigger key="myTrigger" name="My Trigger"> <job key="myJob" /> <schedule repeat-interval="360000" repeat-count="5" /> </trigger> ... |
![]() |
Document generated by Confluence on May 01, 2007 19:27 |