com.sas.hls.schedule
Class Schedule

java.lang.Object
  extended by com.sas.hls.common.AbstractIdentifiable
      extended by com.sas.hls.schedule.ScheduleDescriptor
          extended by com.sas.hls.schedule.Schedule
All Implemented Interfaces:
Identifiable, Serializable

public class Schedule
extends ScheduleDescriptor

A schedule is composed of the item to be scheduled as well as the mechanism (Trigger) for when the schedule will run.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sas.hls.schedule.ScheduleDescriptor
ScheduleDescriptor.ScheduleStatus
 
Field Summary
 
Fields inherited from class com.sas.hls.schedule.ScheduleDescriptor
OBJECT_TYPE
 
Constructor Summary
Schedule()
          Default constructor
Schedule(String scheduleKeyName, String scheduleGroupName)
          Constructor used by the api to populate key values used by the server
 
Method Summary
 Schedulable getSchedulable()
          Get the schedulable item.
 ScheduleTrigger getTrigger()
          Get the trigger which defines when the schedule will run.
 void setSchedulable(Schedulable schedulable)
          Set the schedulable item.
 void setTrigger(ScheduleTrigger trigger)
          Set the trigger which defines when the schedule will run.
 
Methods inherited from class com.sas.hls.schedule.ScheduleDescriptor
equals, getDescription, getLastModifiedDate, getName, getOwner, getSchedulableLabel, getScheduleKeyGroupName, getScheduleKeyName, getStatus, setDescription, setLastModifiedDate, setName, setOwner, setSchedulableLabel, setStatus
 
Methods inherited from class com.sas.hls.common.AbstractIdentifiable
getIdentifier, getObjectType, hashCode, setIdentifier, setObjectType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Schedule

public Schedule()
Default constructor


Schedule

public Schedule(String scheduleKeyName,
                String scheduleGroupName)
Constructor used by the api to populate key values used by the server

Parameters:
scheduleKeyName - The schedule key name used by the server
scheduleGroupName - he schedule key name used by the server
Method Detail

getSchedulable

public Schedulable getSchedulable()
Get the schedulable item.

Returns:
Returns the schedulable.

setSchedulable

public void setSchedulable(Schedulable schedulable)
Set the schedulable item.

Parameters:
schedulable - The schedulable to set.

getTrigger

public ScheduleTrigger getTrigger()
Get the trigger which defines when the schedule will run.

Returns:
Returns the trigger.

setTrigger

public void setTrigger(ScheduleTrigger trigger)
Set the trigger which defines when the schedule will run.

Parameters:
trigger - The trigger to set.


Copyright (c) 2016, SAS Institute Inc., Cary, NC, USA