public class Schedule extends ScheduleDescriptor
ScheduleDescriptor.ScheduleStatus
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Schedulable |
getSchedulable()
Gets the schedulable item.
|
ScheduleTrigger |
getTrigger()
Gets the trigger that defines when to run the schedule.
|
int |
hashCode() |
void |
setSchedulable(Schedulable schedulable)
Sets the schedulable item.
|
void |
setTrigger(ScheduleTrigger trigger)
Sets the trigger which defines when to run the schedule.
|
String |
toString() |
getDescription, getLastModified, getName, getOwner, getSchedulableLabel, getStatus, setDescription, setName
getId, getTypeId
public Schedule(String id, String name, String description, String owner, ScheduleDescriptor.ScheduleStatus status, String schedulableLabel, Date lastModified, Schedulable schedulable, ScheduleTrigger trigger)
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.public Schedulable getSchedulable()
public void setSchedulable(Schedulable schedulable)
schedulable
- The schedulable item.public ScheduleTrigger getTrigger()
public void setTrigger(ScheduleTrigger trigger)
trigger
- The trigger.public int hashCode()
hashCode
in class ScheduleDescriptor
public boolean equals(Object obj)
equals
in class ScheduleDescriptor
public String toString()
toString
in class ScheduleDescriptor
<i>Copyright (c) 2021, SAS Institute Inc., Cary, NC, USA</i>