Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

MonitorJob Class Reference

Inheritance diagram for MonitorJob:
BaseJob

Public Member Functions

 run ()

Static Public Member Functions

static getDisplayName ()
static getType ()
static getRecommendedRunFrequencyContent ()
static getStuckStringContent ()
static getRunTimeThresholdInSeconds ()
static makeJobStuckNotification (array $jobTitleLabels)

Static Protected Member Functions

static getNonMonitorJobsInProcessModels ()
static getNonMonitorJobLogsUnprocessedWithErrors ()
static updateUnprocessedJobLogsWithoutErrors ()

Static Protected Attributes

static $pageSize = 50
static $stuckNotificationThreshold = 4

Detailed Description

A job for monitoring all other jobs and making sure they are functioning properly.

Definition at line 40 of file MonitorJob.php.


Member Function Documentation

static getDisplayName (  )  [static]
Returns:
Translated label that describes this job type.

Reimplemented from BaseJob.

Definition at line 49 of file MonitorJob.php.

static getType (  )  [static]
Returns:
The type of the NotificationRules

Reimplemented from BaseJob.

Definition at line 57 of file MonitorJob.php.

static getRecommendedRunFrequencyContent (  )  [static]
Returns:
string content specifying how often this job should be run as a scheduled task.

Reimplemented from BaseJob.

Definition at line 62 of file MonitorJob.php.

static getStuckStringContent (  )  [static]
Returns:
translated string to use when communicating that the monitor is stuck.

Definition at line 70 of file MonitorJob.php.

static getRunTimeThresholdInSeconds (  )  [static]
Returns:
the threshold for how long a job is allowed to run. This is the 'threshold'. If a job is running longer than the threshold, the monitor job might take action on it since it would be considered 'stuck'.

Reimplemented from BaseJob.

Definition at line 75 of file MonitorJob.php.

run (  ) 

After a Job is instantiated, the run method is called to execute the job.

Reimplemented from BaseJob.

Definition at line 80 of file MonitorJob.php.

static updateUnprocessedJobLogsWithoutErrors (  )  [static, protected]

Single sql query to improve performance

Definition at line 180 of file MonitorJob.php.

static makeJobStuckNotification ( array $  jobTitleLabels  )  [static]
Parameters:
array $jobTitleLabels

Definition at line 189 of file MonitorJob.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Mar 18 07:10:57 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8