HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
Job Class Reference
Inheritance diagram for Job:
Collaboration diagram for Job:

Public Member Functions

 rules ()
 identifiers ()
 getJobStatusId ()
 validateCrontab ($attribute, $params)
 startNow ()
 calculateNextPlannedTime ()
 beforeSave ()
 afterConstruct ()
 beforeExecute ()
 onSuccess ()
 onError ()
 _onError ()
 executeDirect ()
 executeAsync ()
 execute ()
 afterExecute ()
 updateJob ()
 getFinishMessage ()
 log ($message)
 getLog ()
 getJobData ()
 setJobData ($data)
 isDuplicateOf ($job)
- Public Member Functions inherited from Jobs
 tableName ()
 relations ()
 attributeLabels ()
 search ()

Static Public Member Functions

static model ($className=__CLASS__)

Public Attributes

 $rollbackOpenTransaction = true

Protected Member Functions

 _execute ()
 timestampToDatabaseDate ($timestamp=null)
 beforeValidate ()
 afterFind ()
 instantiate ($attributes)
 changeToRunningStatus ()
 logResult ()

Static Protected Attributes

static $logClass = "application.modules.job.models.Job"

Private Member Functions

 extractErrorMessageFromFinishMessage (JobLog $log)

Private Attributes

 $__finishMessage = array()
 $__log = array()

Detailed Description

Definition at line 3 of file Job.php.

Member Function Documentation

Job::_execute ( )
protected

Execute job

Reimplemented in DeleteUserTempJob.

Definition at line 345 of file Job.php.

Here is the caller graph for this function:

Job::_onError ( )

{}

Definition at line 175 of file Job.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Job::afterConstruct ( )

{}

Definition at line 136 of file Job.php.

Job::afterExecute ( )

{}

Definition at line 260 of file Job.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Job::afterFind ( )
protected

{}

Definition at line 383 of file Job.php.

Here is the call graph for this function:

Job::beforeExecute ( )

{}

Definition at line 149 of file Job.php.

Here is the call graph for this function:

Job::beforeSave ( )

{}

Definition at line 105 of file Job.php.

Here is the call graph for this function:

Job::beforeValidate ( )
protected

{}

Definition at line 368 of file Job.php.

Here is the call graph for this function:

Job::calculateNextPlannedTime ( )

Calculate next planned time

Definition at line 93 of file Job.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Job::changeToRunningStatus ( )
protected

Change job status to running

Definition at line 406 of file Job.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Job::execute ( )

Execute job

Definition at line 211 of file Job.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Job::executeAsync ( )

Execute job asynchronous

Returns
boolean

Definition at line 202 of file Job.php.

Job::executeDirect ( )

Execute job directly

Returns
integer

Definition at line 191 of file Job.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Job::extractErrorMessageFromFinishMessage ( JobLog  $log)
private

Extract error message from finish message

Parameters
JobLog$log
Returns
string

Definition at line 438 of file Job.php.

Here is the caller graph for this function:

Job::getFinishMessage ( )

Returns finish message

Returns
string

Definition at line 284 of file Job.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Job::getJobData ( )

Returns job data

Returns
array

Definition at line 312 of file Job.php.

Here is the caller graph for this function:

Job::getJobStatusId ( )

Returns job status id

Returns
integer

Definition at line 59 of file Job.php.

Job::getLog ( )

Log

Returns
array

Definition at line 303 of file Job.php.

Here is the caller graph for this function:

Job::identifiers ( )

{}

Definition at line 50 of file Job.php.

Here is the caller graph for this function:

Job::instantiate (   $attributes)
protected

{}

Definition at line 393 of file Job.php.

Job::isDuplicateOf (   $job)

Check job is duplicate

Parameters
Job$job
Returns
boolean

Definition at line 337 of file Job.php.

Job::log (   $message)

Log

Parameters
string$message

Definition at line 294 of file Job.php.

Here is the caller graph for this function:

Job::logResult ( )
protected

Log result

Definition at line 415 of file Job.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static Job::model (   $className = __CLASS__)
static

{Returns the static model of the specified AR class. Please note that you should have this exact method in all your CActiveRecord descendants!

Parameters
string$classNameactive record class name.
Returns
Jobs the static model class
}

Reimplemented from Jobs.

Definition at line 32 of file Job.php.

Here is the caller graph for this function:

Job::onError ( )

{}

Definition at line 167 of file Job.php.

Here is the caller graph for this function:

Job::onSuccess ( )

{}

Definition at line 159 of file Job.php.

Here is the caller graph for this function:

Job::rules ( )

{

Returns
array validation rules for model attributes.
}

Reimplemented from Jobs.

Definition at line 40 of file Job.php.

Job::setJobData (   $data)

Set job data

Parameters
array$data

Definition at line 320 of file Job.php.

Here is the caller graph for this function:

Job::startNow ( )

Start now

Definition at line 85 of file Job.php.

Here is the call graph for this function:

Job::timestampToDatabaseDate (   $timestamp = null)
protected

Convert timestamp to database date

Parameters
string$timestamp
Returns
string

Definition at line 355 of file Job.php.

Here is the caller graph for this function:

Job::updateJob ( )

Update job data

Definition at line 271 of file Job.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Job::validateCrontab (   $attribute,
  $params 
)

Validate crontab

Definition at line 67 of file Job.php.

Here is the call graph for this function:

Member Data Documentation

Job::$__finishMessage = array()
private

Definition at line 15 of file Job.php.

Job::$__log = array()
private

Definition at line 21 of file Job.php.

Job::$logClass = "application.modules.job.models.Job"
staticprotected

Definition at line 9 of file Job.php.

Job::$rollbackOpenTransaction = true

Definition at line 27 of file Job.php.


The documentation for this class was generated from the following file: