Class SimpleJobTrigger
- java.lang.Object
-
- org.pentaho.platform.api.scheduler2.JobTrigger
-
- org.pentaho.platform.api.scheduler2.SimpleJobTrigger
-
- All Implemented Interfaces:
Serializable
,IJobTrigger
public class SimpleJobTrigger extends JobTrigger implements Serializable
A simple way of specifying a schedule on which a job will fire as opposed toComplexJobTrigger
. TheSimpleJobTrigger
can meet your needs if you are looking for a way to have a job start, execute a set number of times on a regular interval and then end either after a specified number of runs or at an end date.- Author:
- aphillips
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
REPEAT_INDEFINITELY
-
Fields inherited from class org.pentaho.platform.api.scheduler2.JobTrigger
ONCE_NOW
-
-
Constructor Summary
Constructors Constructor Description SimpleJobTrigger()
SimpleJobTrigger(Date startTime, Date endTime, int repeatCount, long repeatIntervalSeconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getRepeatCount()
long
getRepeatInterval()
void
setRepeatCount(int repeatCount)
void
setRepeatInterval(long repeatIntervalSeconds)
String
toString()
-
Methods inherited from class org.pentaho.platform.api.scheduler2.JobTrigger
getCronDescription, getCronString, getDuration, getEndTime, getStartTime, getUiPassParam, setCronDescription, setCronString, setDuration, setEndTime, setStartTime, setUiPassParam
-
-
-
-
Field Detail
-
REPEAT_INDEFINITELY
public static final int REPEAT_INDEFINITELY
- See Also:
- Constant Field Values
-
-