Package com.sas.lsaf.schedule
Class Schedule
java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
com.sas.lsaf.schedule.ScheduleDescriptor
com.sas.lsaf.schedule.Schedule
- All Implemented Interfaces:
Identifiable,Serializable
The class that represents a schedule. A schedule is composed of the item to schedule and the mechanism (trigger) for how and when the schedule
will runs.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sas.lsaf.schedule.ScheduleDescriptor
ScheduleDescriptor.ScheduleStatus -
Constructor Summary
ConstructorsConstructorDescriptionSchedule(String id, String name, String description, String owner, ScheduleDescriptor.ScheduleStatus status, String schedulableLabel, Date lastModified, Schedulable schedulable, ScheduleTrigger trigger) It is not intended or recommended that the consumer of this API construct these objects. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the schedulable item.Gets the trigger that defines when to run the schedule.inthashCode()voidsetSchedulable(Schedulable schedulable) Sets the schedulable item.voidsetTrigger(ScheduleTrigger trigger) Sets the trigger which defines when to run the schedule.toString()Methods inherited from class com.sas.lsaf.schedule.ScheduleDescriptor
getDescription, getLastModified, getName, getOwner, getSchedulableLabel, getStatus, setDescription, setNameMethods inherited from class com.sas.lsaf.core.AbstractIdentifiable
getId, getTypeId
-
Constructor Details
-
Schedule
public Schedule(String id, String name, String description, String owner, ScheduleDescriptor.ScheduleStatus status, String schedulableLabel, Date lastModified, Schedulable schedulable, ScheduleTrigger trigger) It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the schedules returned by the API.- Parameters:
id- the unique identifier of the schedule.name- the name of the schedule.description- the description of the schedule.owner- the owner of the schedule.status- the status of the schedule.schedulableLabel- the label of the item (such as the job) that is scheduled.lastModified- the date on which the schedule was last modified.schedulable- the job to run when the schedule is triggered.trigger- the infromation about how and when the schedule runs.
-
-
Method Details
-
getSchedulable
Gets the schedulable item.- Returns:
- Returns the schedulable item.
-
setSchedulable
Sets the schedulable item.- Parameters:
schedulable- The schedulable item.
-
getTrigger
Gets the trigger that defines when to run the schedule.- Returns:
- The trigger.
-
setTrigger
Sets the trigger which defines when to run the schedule.- Parameters:
trigger- The trigger.
-
hashCode
public int hashCode()- Overrides:
hashCodein classScheduleDescriptor
-
equals
- Overrides:
equalsin classScheduleDescriptor
-
toString
- Overrides:
toStringin classScheduleDescriptor
-