public interface TriggerService
| Modifier and Type | Method and Description |
|---|---|
void |
activate(TriggerModel trigger)
Executes the assigned
JobModel using the assigned CronJobModel if the next activation
time ((@link TriggerModel#getActivationTime()} is less or equal than the current system time. |
java.util.List<TriggerModel> |
getActiveTriggers()
Returns a
List of all Triggers, whose next activation time (
getNextTime(TriggerModel, Calendar ) lies before the current system time. |
java.util.List<TriggerModel> |
getActiveTriggers(java.util.Calendar calendar)
Returns a
List of all Triggers, whose next activation time (
getNextTime(TriggerModel, Calendar ) lies before the specified calendar date. |
java.util.Calendar |
getNextTime(TriggerModel trigger,
java.util.Calendar relativeTo)
Returns the next activation time for the
TriggerModel in relation to the specified calendar. |
int |
getPulseSeconds()
Returns a time interval at which trigger activation is fired.
|
void |
setPulseSeconds(int interval)
Sets a time interval at which trigger activation is fired.
|
void activate(TriggerModel trigger)
JobModel using the assigned CronJobModel if the next activation
time ((@link TriggerModel#getActivationTime()} is less or equal than the current system time.trigger - the trigger instancejava.util.Calendar getNextTime(TriggerModel trigger, java.util.Calendar relativeTo)
TriggerModel in relation to the specified calendar.
Use this method e.g. for different first day of week modes.
trigger - the trigger instancerelativeTo - the calendar which the next activation time should be calculated relatively forCalendar) for the TriggerModel in relation to the specified
timejava.util.List<TriggerModel> getActiveTriggers()
List of all Triggers, whose next activation time (
getNextTime(TriggerModel, Calendar ) lies before the current system time.List of all Triggers, whose next activation time (
getNextTime(TriggerModel, Calendar ) is smaller than current system timejava.util.List<TriggerModel> getActiveTriggers(java.util.Calendar calendar)
List of all Triggers, whose next activation time (
getNextTime(TriggerModel, Calendar ) lies before the specified calendar date.calendar - the calendarList of all Triggers, whose next activation time (
getNextTime(TriggerModel, Calendar ) lies before the specified calendar dateint getPulseSeconds()
void setPulseSeconds(int interval)
Copyright © 2018 SAP SE. All Rights Reserved.