Class RepositoryJobSimpleTrigger
java.lang.Object
org.onehippo.repository.scheduling.RepositoryJobTrigger
org.onehippo.repository.scheduling.RepositoryJobSimpleTrigger
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
Modifier and TypeFieldDescriptionstatic final int
Special repeat count value for indefinite repetition of the trigger. -
Constructor Summary
ConstructorDescriptionRepositoryJobSimpleTrigger
(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
Modifier and TypeMethodDescriptionint
How many times to repeat the trigger.long
How long in between trigger occurrences.When the trigger will occur (for the first time).Methods inherited from class org.onehippo.repository.scheduling.RepositoryJobTrigger
getName
-
Field Details
-
REPEAT_INDEFINITELY
public static final int REPEAT_INDEFINITELYSpecial repeat count value for indefinite repetition of the trigger.- See Also:
-
-
Constructor Details
-
RepositoryJobSimpleTrigger
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 Details
-
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.
-