MonitorJob Class Reference

Inheritance diagram for MonitorJob:

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]
Translated label that describes this job type.

Reimplemented from BaseJob.

Definition at line 49 of file MonitorJob.php.

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

Reimplemented from BaseJob.

Definition at line 57 of file MonitorJob.php.

static getRecommendedRunFrequencyContent (  )  [static]
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]
translated string to use when communicating that the monitor is stuck.

Definition at line 70 of file MonitorJob.php.

static getRunTimeThresholdInSeconds (  )  [static]
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]
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 Wed Dec 11 07:11:06 2019