Interface IJobTrigger
- All Known Subinterfaces:
IComplexJobTrigger,ICronJobTrigger,ISimpleJobTrigger
public interface IJobTrigger
-
Method Summary
Modifier and TypeMethodDescriptionReturns the Cron String used by quartz SchedulerlongReturns the trigger end time.Returns the trigger start time.voidsetCronString(String cronString) Sets the cron String used by the quartz schedulervoidsetDuration(long duration) voidsetEndTime(Date endTime) Sets the trigger end time.voidsetStartTime(Date startTime) Sets the trigger start time.voidsetUiPassParam(String uiPassParam) The value of this field comes from the UI and is persisted in quartz but not used by quartz or the server.
-
Method Details
-
getStartTime
Date getStartTime()Returns the trigger start time.- Returns:
- the trigger start time.
-
setStartTime
Sets the trigger start time.- Parameters:
startTime- when to start the trigger. If null the trigger starts immediately.
-
getEndTime
Date getEndTime()Returns the trigger end time.- Returns:
- the trigger end time.
-
setEndTime
Sets the trigger end time.- Parameters:
endTime- when to end the trigger. If null the trigger runs indefinitely
-
getUiPassParam
String getUiPassParam()- Returns:
- the uiPassParam
-
setUiPassParam
The value of this field comes from the UI and is persisted in quartz but not used by quartz or the server. It is strictly a way for the UI to persist something. In the present implementation, this field holds the scheduleType.- Parameters:
uiPassParam- A User Interface provided string
-
getCronString
String getCronString()Returns the Cron String used by quartz Scheduler- Returns:
- the cronString
-
setCronString
Sets the cron String used by the quartz scheduler- Parameters:
cronString- the cronString to set
-
getDuration
long getDuration()- Returns:
- a long that represents in milliseconds how long this trigger should be in effect once triggered
-
setDuration
void setDuration(long duration) - Parameters:
duration- Sets the length of time in milliseconds that this trigger should be in effect.
-