Package Thor.API.Operations
Interface tcSchedulerOperationsIntf
- All Superinterfaces:
tcUtilityOperationsIntf
-
Method Summary
Modifier and TypeMethodDescriptionlong
addScheduleTaskAttribute
(long scheduledTaskKey, Map attributes) Adds schedule task attribute against a give task key with information based on the attribute that are passed to this methodlong
createScheduleTask
(Map phAttributes) Create a schedule task with the list of specified attributes.void
deleteScheduleTask
(long scheduleTaskKey) Deletes a specified schedule task.void
deleteScheduleTaskAttribute
(long taskAttributeKey) Deletes a specified schedule task attributeThor.API.tcResultSet
findScheduleTaskAttributes
(Map phAttributeList) Returns a list of schedule task attributes with detail (in the form of a tcResultSet) that matches the provided attribute list.Thor.API.tcResultSet
findScheduleTaskClassesFiltered
(Map phAttributeList, String[] pasFieldList) Returns a list of scheduled task classes (in the form of a list of tcDataRecord) in ascending order that matches the provided attribute list.Thor.API.tcResultSet
findScheduleTasks
(Map phAttributeList) Returns a list of schedule task with detail (in the form of a tcResultSet) that matches the provided attribute list.Thor.API.tcResultSet
getScheduleTaskAttributes
(long scheduleTaskKey) Returns a list of Schedule Task Attributes (in the form of a tcResultSet) that are associated with the specified Schedule Taskvoid
updateScheduleTask
(long scheduledTaskKey, Map attributes) Updates schedule task information based on the attribute that are passed to this methodvoid
updateScheduleTaskAttribute
(long scheduledTaskKey, long taskAttributeKey, Map attributes) Updates schedule task attribute information based on the attribute that are passed to this methodMethods inherited from interface Thor.API.Base.tcUtilityOperationsIntf
close, getName, setCountry, setLanguage, setVariant
-
Method Details
-
updateScheduleTask
void updateScheduleTask(long scheduledTaskKey, Map attributes) throws tcAPIException, tcScheduledTaskNotFoundException, tcInvalidAttributeException, tcAttributeMissingException, tcAPIException Updates schedule task information based on the attribute that are passed to this method- Parameters:
scheduledTaskKey
- the scheduled task keyattributes
- a map of updated attributes valid attributes- Task Scheduler.ClassName
- Task Scheduler.Disable
- Task Scheduler.Frequency Type
- Task Scheduler.Interval
- Task Scheduler.Key
- Task Scheduler.Last Start Time
- Task Scheduler.Last Stop Time
- Task Scheduler.Max Retries
- Task Scheduler.Name
- Task Scheduler.Next Start Time
- Task Scheduler.Retry Count
- Task Scheduler.Start Time
- Task Scheduler.Status
- Throws:
tcAPIException
tcScheduledTaskNotFoundException
tcInvalidAttributeException
tcAttributeMissingException
- Since:
- 9.1
-
updateScheduleTaskAttribute
void updateScheduleTaskAttribute(long scheduledTaskKey, long taskAttributeKey, Map attributes) throws tcAPIException, tcScheduledTaskNotFoundException, tcNoSuchTaskAttributeException, tcAPIException Updates schedule task attribute information based on the attribute that are passed to this method- Parameters:
scheduledTaskKey
- the scheduled task keytaskAttributeKey
- the scheduled task attribute keyattributes
- a map of updated attributes valid attributes- Task Scheduler.Task Attributes.Name
- Task Scheduler.Task Attributes.Value
- Throws:
tcAPIException
tcScheduledTaskNotFoundException
tcNoSuchTaskAttributeException
- Since:
- 9.1
-
getScheduleTaskAttributes
Thor.API.tcResultSet getScheduleTaskAttributes(long scheduleTaskKey) throws tcAPIException, tcScheduledTaskNotFoundException, tcAPIException Returns a list of Schedule Task Attributes (in the form of a tcResultSet) that are associated with the specified Schedule Task- Parameters:
scheduleTaskName
- The name of the schedule task whose Task Attributes are to be retrieved- Returns:
- A tcResultSet in which each row holds details about the Task Attributes
- Throws:
tcAPIException
tcScheduledTaskNotFoundException
- Since:
- 9.1.0.0
-
createScheduleTask
long createScheduleTask(Map phAttributes) throws tcAPIException, tcAttributeMissingException, DuplicateScheduleTaskException, tcInvalidAttributeException, tcAPIException Create a schedule task with the list of specified attributes.- Parameters:
phAttributes
- - The attributes to set for the new schedule task being created valid attributes- Task Scheduler.ClassName
- Task Scheduler.Disable
- Task Scheduler.Frequency Type
- Task Scheduler.Interval
- Task Scheduler.Key
- Task Scheduler.Last Start Time
- Task Scheduler.Last Stop Time
- Task Scheduler.Max Retries
- Task Scheduler.Name
- Task Scheduler.Next Start Time
- Task Scheduler.Retry Count
- Task Scheduler.Start Time
- Task Scheduler.Status
- Returns:
- A long containing the key of the created schedule task
- Throws:
tcAPIException
- thrown if errors occur while savingDuplicateScheduleTaskException
- thrown if schedule task Name already existstcInvalidAttributeException
- thrown if a schedule task key is provided as an attributetcAttributeMissingException
- Since:
- 9.1
-
addScheduleTaskAttribute
long addScheduleTaskAttribute(long scheduledTaskKey, Map attributes) throws tcAPIException, tcInvalidAttributeException, DuplicateScheduleTaskAttributeException, tcAPIException Adds schedule task attribute against a give task key with information based on the attribute that are passed to this method- Parameters:
scheduledTaskKey
- the scheduled task keyattributes
- a map of updated attributes- Task Scheduler.Task Attributes.Name
- Task Scheduler.Task Attributes.Value
- Returns:
- A long containing the key of the created schedule task attribute
- Throws:
tcAPIException
tcInvalidAttributeException
DuplicateScheduleTaskAttributeException
- Since:
- 9.1
-
findScheduleTasks
Returns a list of schedule task with detail (in the form of a tcResultSet) that matches the provided attribute list.- Parameters:
phAttributeList
- The map of schedule task search criteria valid attributes- Task Scheduler.Key
- Task Scheduler.ClassName
- Task Scheduler.Disable
- Task Scheduler.Frequency Type
- Task Scheduler.Interval
- Task Scheduler.Key
- Task Scheduler.Last Start Time
- Task Scheduler.Last Stop Time
- Task Scheduler.Max Retries
- Task Scheduler.Name
- Task Scheduler.Next Start Time
- Task Scheduler.Retry Count
- Task Scheduler.Start Time
- Task Scheduler.Status
- Returns:
- A tcResultSet in which each row holds details about the schedule task that were found
- Throws:
tcAPIException
- Since:
- 9.1
-
findScheduleTaskAttributes
Thor.API.tcResultSet findScheduleTaskAttributes(Map phAttributeList) throws tcAPIException, tcAPIException Returns a list of schedule task attributes with detail (in the form of a tcResultSet) that matches the provided attribute list.- Parameters:
phAttributeList
- The map of attribute to be search- Task Scheduler.Task Attributes.Key
- Task Scheduler.Task Attributes.Name
- Task Scheduler.Task Attributes.Value
- Returns:
- A tcResultSet in which each row holds details about the schedule task attribute that were found
- Throws:
tcAPIException
- Since:
- 9.1
-
deleteScheduleTaskAttribute
void deleteScheduleTaskAttribute(long taskAttributeKey) throws tcAPIException, tcNoSuchTaskAttributeException, tcAPIException Deletes a specified schedule task attribute- Parameters:
taskAttributeKey
- the task attribute key to delete- Throws:
tcAPIException
tcNoSuchTaskAttributeException
- Since:
- 9.1
-
deleteScheduleTask
void deleteScheduleTask(long scheduleTaskKey) throws tcAPIException, tcScheduledTaskNotFoundException, tcAPIException Deletes a specified schedule task.- Parameters:
scheduleTaskKey
- the task attribute key to delete- Throws:
tcAPIException
tcScheduledTaskNotFoundException
- Since:
- 9.1
-
findScheduleTaskClassesFiltered
Thor.API.tcResultSet findScheduleTaskClassesFiltered(Map phAttributeList, String[] pasFieldList) throws tcAPIException, tcInvalidAttributeException, tcAPIException Returns a list of scheduled task classes (in the form of a list of tcDataRecord) in ascending order that matches the provided attribute list.- Parameters:
phAttributeList
- An array of tcMapping objects, each object holding the attribute-value pairs to match the group against. The Attribute names are the String column codes (from the Xellerate metadata). The Attribute Values are the String attributes to base the search on. The values could include wild cards (*). valid attributes- Task Scheduler.ClassName
pasFieldList
- The list of fields (specified as column codes from the Xellerate metadata) that should be in the returned result set.- Returns:
- A tcResultSet in which each row holds details about the scheduled task classes that were found
- Throws:
tcAPIException
tcInvalidAttributeException
- Since:
- 9.1
-