Namespace: Consultingwerk.SmartFramework.Scheduler.Runtime
Class 
SchedulerRuntime Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:SchedulerRuntime
Purpose:Core scheduler runtime
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Jul 17 09:55:38 CEST 2016
/* Mike Fechner, Consultingwerk Ltd. 13.09.2017
Preprocessor variables for SmartComponentLibrary, WinKit and SmartFramework
based on Consultingwerk/packages.i now



Top Method Summary
Options Name Purpose
+ Execute () Performs execution of scheduler jobs
+ ExecuteSchedulerJob (SchedulerJobDatasetModel, SchedulerJobStatusDatasetModel) Executes a single SchedulerJob instance
# InvokeSchedulerJobCommand (ISchedulerJobCommand, Object) Calls the Start method of the
+ LOGICAL IsCancelled () Tests if the current Job is cancelled
+ UpdateJobStatus (character) Updates the Job's status
+ UpdateJobStatus (character, integer) Updates the Job's status
+ UpdateJobStatus (integer) Updates the Job's status

Top Constructor Summary
Options Name Purpose
# SchedulerRuntime () Protected default constructor of the SchedulerRuntime class

Top Property Summary
Options Name Purpose
+ LOGICAL Active
+ INTEGER KeepRunning
+ INTEGER PauseBetweenPolling
+ CHARACTER SchedulerJobStatusGuid
+ LOGICAL Verbose


Method Detail
Top

PUBLIC Execute ()

Purpose: Performs execution of scheduler jobs
Notes:

Top

PUBLIC ExecuteSchedulerJob (SchedulerJobDatasetModel, SchedulerJobStatusDatasetModel)

Purpose: Executes a single SchedulerJob instance
Notes:

Parameters:
poJob Consultingwerk.SmartFramework.Scheduler.SchedulerJobDatasetModel
The SchedulerJobDatasetModel with the job to execute
poJobStatus Consultingwerk.SmartFramework.Scheduler.SchedulerJobStatusDatasetModel
The SchedulerJobStatusDatasetModel with the job instance to execute
Top

PROTECTED InvokeSchedulerJobCommand (ISchedulerJobCommand, Object)

Purpose: Calls the Start method of the
Notes: Moved outside of ExecuteSchedulerJob for ability to handle
STOP conditions

Parameters:
poJobCommand Consultingwerk.SmartFramework.Scheduler.ISchedulerJobCommand
The ISchedulerJobCommand instance to execute
poParameter Progress.Lang.Object
The parameter object for the job instance
Top

PUBLIC LOGICAL IsCancelled ()

Purpose: Tests if the current Job is cancelled
Notes: When the Job was cancelled, the SmartSchedulerJobStatus record
will be set to the Cancelled status immediately. The calling
routine is expected to leave promptly

Returns LOGICAL
Logical value indicating if the Job was cancelled
Top

PUBLIC UpdateJobStatus (character)

Purpose: Updates the Job's status
Notes:

Parameters:
pcStatusText CHARACTER
The status text
Top

PUBLIC UpdateJobStatus (character, integer)

Purpose: Updates the Job's status
Notes:

Parameters:
pcStatusText CHARACTER
The status text
piPercentFinished INTEGER
The percentage to indicate the job completion
Top

PUBLIC UpdateJobStatus (integer)

Purpose: Updates the Job's status
Notes:

Parameters:
piPercentFinished INTEGER
The percentage to indicate the job completion


Constructor Detail
Top

PROTECTED SchedulerRuntime ()

Purpose: Protected default constructor of the SchedulerRuntime class
Notes: Disallow instance creation



Property Detail
Top

PUBLIC LOGICAL Active


Returns LOGICAL
Top

PUBLIC INTEGER KeepRunning


Returns INTEGER
Top

PUBLIC INTEGER PauseBetweenPolling


Returns INTEGER
Top

PUBLIC CHARACTER SchedulerJobStatusGuid


Returns CHARACTER
Top

PUBLIC LOGICAL Verbose


Returns LOGICAL


©2006-2020 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       04.02.2020 23:26:39