Class RepositoryJobSimpleTrigger
- java.lang.Object
-
- org.onehippo.repository.scheduling.RepositoryJobTrigger
-
- org.onehippo.repository.scheduling.RepositoryJobSimpleTrigger
-
public class RepositoryJobSimpleTrigger extends RepositoryJobTrigger
Repository job trigger that allows to schedule a repository job either once at a given date, or repeatedly from a given date onwards.
-
-
Field Summary
Fields Modifier and Type Field Description static int
REPEAT_INDEFINITELY
Special repeat count value for indefinite repetition of the trigger.
-
Constructor Summary
Constructors Constructor Description RepositoryJobSimpleTrigger(String name, Date startTime)
Create a trigger that will occur once atstartTime
.RepositoryJobSimpleTrigger(String name, Date startTime, int repeatCount, long repeatInterval)
Create a trigger that will start atstartTime
and repeat atrepeatInterval
repeatCount
times.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getRepeatCount()
How many times to repeat the trigger.long
getRepeatInterval()
How long in between trigger occurrences.Date
getStartTime()
When the trigger will occur (for the first time).-
Methods inherited from class org.onehippo.repository.scheduling.RepositoryJobTrigger
getName
-
-
-
-
Field Detail
-
REPEAT_INDEFINITELY
public static final int REPEAT_INDEFINITELY
Special repeat count value for indefinite repetition of the trigger.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RepositoryJobSimpleTrigger
public RepositoryJobSimpleTrigger(String name, Date startTime)
Create a trigger that will occur once atstartTime
.- Parameters:
name
- the name of the triggerstartTime
- when the trigger must occur
-
RepositoryJobSimpleTrigger
public RepositoryJobSimpleTrigger(String name, Date startTime, int repeatCount, long repeatInterval)
Create a trigger that will start atstartTime
and repeat atrepeatInterval
repeatCount
times.- Parameters:
name
- the name of the trigger.startTime
- when the first trigger must occur.repeatCount
- how many times in total the trigger must occur.repeatInterval
- the number of ms between trigger occurrences.
-
-
Method Detail
-
getStartTime
public Date getStartTime()
When the trigger will occur (for the first time).
-
getRepeatCount
public int getRepeatCount()
How many times to repeat the trigger.
-
getRepeatInterval
public long getRepeatInterval()
How long in between trigger occurrences.
-
-