Class JobTrigger
- java.lang.Object
 - 
- org.pentaho.platform.api.scheduler2.JobTrigger
 
 
- 
- All Implemented Interfaces:
 Serializable,IJobTrigger
- Direct Known Subclasses:
 ComplexJobTrigger,CronJobTrigger,SimpleJobTrigger
public abstract class JobTrigger extends Object implements Serializable, IJobTrigger
The marker superclass for the various types of job triggers.- Author:
 - aphillips
 - See Also:
 SimpleJobTrigger,ComplexJobTrigger, Serialized Form
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static SimpleJobTriggerONCE_NOW 
- 
Constructor Summary
Constructors Constructor Description JobTrigger()JobTrigger(Date startTime, Date endTime) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCronDescription()Returns the User friendly description of a Cron StringStringgetCronString()Returns the Cron String used by quartz SchedulerlonggetDuration()DategetEndTime()Returns the trigger end time.DategetStartTime()Returns the trigger start time.StringgetUiPassParam()voidsetCronDescription(String cronDescription)Sets the user friendly description of a cron String=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. 
 - 
 
- 
- 
Field Detail
- 
ONCE_NOW
public static final SimpleJobTrigger ONCE_NOW
 
 - 
 
- 
Method Detail
- 
getStartTime
public Date getStartTime()
Description copied from interface:IJobTriggerReturns the trigger start time.- Specified by:
 getStartTimein interfaceIJobTrigger- Returns:
 - the trigger start time.
 
 
- 
setStartTime
public void setStartTime(Date startTime)
Description copied from interface:IJobTriggerSets the trigger start time.- Specified by:
 setStartTimein interfaceIJobTrigger- Parameters:
 startTime- when to start the trigger. If null the trigger starts immediately.
 
- 
getEndTime
public Date getEndTime()
Description copied from interface:IJobTriggerReturns the trigger end time.- Specified by:
 getEndTimein interfaceIJobTrigger- Returns:
 - the trigger end time.
 
 
- 
setEndTime
public void setEndTime(Date endTime)
Description copied from interface:IJobTriggerSets the trigger end time.- Specified by:
 setEndTimein interfaceIJobTrigger- Parameters:
 endTime- when to end the trigger. If null the trigger runs indefinitely
 
- 
getUiPassParam
public String getUiPassParam()
- Specified by:
 getUiPassParamin interfaceIJobTrigger- Returns:
 - the uiPassParam
 
 
- 
setUiPassParam
public void setUiPassParam(String uiPassParam)
Description copied from interface:IJobTriggerThe 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.- Specified by:
 setUiPassParamin interfaceIJobTrigger- Parameters:
 uiPassParam- A User Interface provided string
 
- 
getCronString
public String getCronString()
Description copied from interface:IJobTriggerReturns the Cron String used by quartz Scheduler- Specified by:
 getCronStringin interfaceIJobTrigger- Returns:
 - the cronString
 
 
- 
setCronString
public void setCronString(String cronString)
Description copied from interface:IJobTriggerSets the cron String used by the quartz scheduler- Specified by:
 setCronStringin interfaceIJobTrigger- Parameters:
 cronString- the cronString to set
 
- 
getDuration
public long getDuration()
- Specified by:
 getDurationin interfaceIJobTrigger- Returns:
 - a long that represents in milliseconds how long this trigger should be in effect once triggered
 
 
- 
setDuration
public void setDuration(long duration)
- Specified by:
 setDurationin interfaceIJobTrigger- Parameters:
 duration- Sets the length of time in milliseconds that this trigger should be in effect.
 
- 
getCronDescription
public String getCronDescription()
Description copied from interface:IJobTriggerReturns the User friendly description of a Cron String- Specified by:
 getCronDescriptionin interfaceIJobTrigger- Returns:
 - the cronDescription
 
 
- 
setCronDescription
public void setCronDescription(String cronDescription)
Description copied from interface:IJobTriggerSets the user friendly description of a cron String=- Specified by:
 setCronDescriptionin interfaceIJobTrigger- Parameters:
 cronDescription- the cronString to set
 
 - 
 
 -