adams.flow.standalone.Cron
Executes an actor according to a pre-defined schedule.
Note: since the actor merely starts the cron scheduler in the background, the actor finishes the execution pretty much immediately. Therefore, the flow needs to be kept alive in order to let the background jobs getting executed. This can be done with a simple WhileLoop actor using the 'adams.flow.condition.bool.True' condition and a nested Start/Sleep actor. You can use the adams.flow.template.EndlessLooptemplate to generate this loop automatically.
NB: Any newly scheduled jobs get dropped if the previous execution is still running.
For more information on the scheduler format see:
http://www.quartz-scheduler.org/docs/tutorials/crontrigger.html
Flow input/output:
-standalone-
Actor handler information:
- Actor execution: SEQUENTIAL
- Standalones allowed: true
- Source allowed: true
- Forwards input: true
The logging level for outputting errors and debugging output.
command-line | -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> |
default | WARNING |
min-user-mode | Expert |
The name of the actor.
command-line | -name <java.lang.String> |
default | Cron |
The annotations to attach to this actor.
command-line | -annotation <adams.core.base.BaseAnnotation> |
default |
|
If set to true, transformation is skipped and the input token is just forwarded as it is.
command-line | -skip <boolean> |
default | false |
If set to true, the flow execution at this level gets stopped in case this actor encounters an error; the error gets propagated; useful for critical actors.
command-line | -stop-flow-on-error <boolean> |
default | false |
min-user-mode | Expert |
If enabled, then no errors are output in the console; Note: the enclosing actor handler must have this enabled as well.
command-line | -silent <boolean> |
default | false |
min-user-mode | Expert |
The actor to execute according to the cron schedule.
command-line | -cron-actor <adams.flow.core.Actor> [-cron-actor ...] |
default |
|
The schedule for execution the cron actor; format 'SECOND MINUTE HOUR DAYOFMONTH MONTH WEEKDAY [YEAR]'.
command-line | -schedule <adams.core.base.CronSchedule> |
default | 0 0 1 * * ? |
more | http://www.docjar.com/docs/api/org/quartz/CronExpression.html |