Class UnixCronTrigger
- java.lang.Object
-
- org.bonitasoft.engine.scheduler.trigger.OneShotTrigger
-
- org.bonitasoft.engine.scheduler.trigger.UnixCronTrigger
-
- All Implemented Interfaces:
CronTrigger,Trigger
public class UnixCronTrigger extends OneShotTrigger implements CronTrigger
- Author:
- Matthieu Chaffotte
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.bonitasoft.engine.scheduler.trigger.Trigger
Trigger.MisfireRestartPolicy
-
-
Constructor Summary
Constructors Constructor Description UnixCronTrigger(java.lang.String name, java.util.Date startDate, java.lang.String expression)UnixCronTrigger(java.lang.String name, java.util.Date startDate, java.lang.String expression, Trigger.MisfireRestartPolicy misfireHandlingPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetEndDate()Returns when the trigger ends.java.lang.StringgetExpression()Returns the expression as a unix-like cron expressions "* * * * * ?" 1.-
Methods inherited from class org.bonitasoft.engine.scheduler.trigger.OneShotTrigger
getMisfireHandlingPolicy, getName, getPriority, getStartDate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bonitasoft.engine.scheduler.trigger.Trigger
getMisfireHandlingPolicy, getName, getPriority, getStartDate
-
-
-
-
Constructor Detail
-
UnixCronTrigger
public UnixCronTrigger(java.lang.String name, java.util.Date startDate, java.lang.String expression)
-
UnixCronTrigger
public UnixCronTrigger(java.lang.String name, java.util.Date startDate, java.lang.String expression, Trigger.MisfireRestartPolicy misfireHandlingPolicy)
-
-
Method Detail
-
getExpression
public java.lang.String getExpression()
Description copied from interface:CronTriggerReturns the expression as a unix-like cron expressions "* * * * * ?" 1. seconds 2. minutes 3. hours 4. day of the month 5. month 6 day of the week 7 year (optional)- Specified by:
getExpressionin interfaceCronTrigger- Returns:
- a unix-like CRON expression
-
getEndDate
public java.util.Date getEndDate()
Description copied from interface:CronTriggerReturns when the trigger ends. It can be null which means that the trigger never ends- Specified by:
getEndDatein interfaceCronTrigger- Returns:
-
-