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 175 of file MonitorJob.php.

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

Definition at line 184 of file MonitorJob.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Jul 24 07:10:27 2017