HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
JobManager Class Reference

Public Member Functions

 addJob (Job $job, $checkEnqueuedDuplicate=true)
 execJob (Job $job, $id=false)
 createJobFromArray ($attributes)
 addCronTabJobFromArray ($attributes)
 syncJobs ()
 runJobs ()
 onBeforeExecute ($event)
 onAfterExecute ($event)

Public Attributes

 $jobs = array()
 $clearComponents = array()
 $executeAsync = true

Protected Member Functions

 saveJob (Job $job)
 timestampToDatabaseDate ($timestamp=null)
 findEnqueuedDuplicateJob (Job $job)

Static Protected Attributes

static $logClass = "application.modules.job.components.JobManager"

Private Member Functions

 clearComponents ()
 prepareFindAttributes ($class, $attributes)
 findAll ($class, $attributes, $condition=null)
 __checkLimitsProcesses ($attributes)

Detailed Description

Definition at line 3 of file JobManager.php.

Member Function Documentation

JobManager::__checkLimitsProcesses (   $attributes)
private

Check limits of executed processes.

Parameters
array$attributes
Returns
boolean

Definition at line 354 of file JobManager.php.

Here is the caller graph for this function:

JobManager::addCronTabJobFromArray (   $attributes)

Add crontab job from array.

Parameters
array$attributes
Returns
Job

Definition at line 109 of file JobManager.php.

Here is the call graph for this function:

Here is the caller graph for this function:

JobManager::addJob ( Job  $job,
  $checkEnqueuedDuplicate = true 
)

Add job.

Parameters
Job$job
Returns
boolean

Definition at line 40 of file JobManager.php.

Here is the call graph for this function:

Here is the caller graph for this function:

JobManager::clearComponents ( )
private

Clear components.

Definition at line 275 of file JobManager.php.

JobManager::createJobFromArray (   $attributes)

Create job from array.

Parameters
array$attributes
Returns
Job

Definition at line 79 of file JobManager.php.

Here is the caller graph for this function:

JobManager::execJob ( Job  $job,
  $id = false 
)

Execute single job.

Parameters
Job$job
boolean$id

Definition at line 58 of file JobManager.php.

Here is the call graph for this function:

JobManager::findAll (   $class,
  $attributes,
  $condition = null 
)
private

Find all data.

Parameters
string$class
array$attributes
string$condition
Returns
object

Definition at line 339 of file JobManager.php.

Here is the call graph for this function:

JobManager::findEnqueuedDuplicateJob ( Job  $job)
protected

Find enqueued duplicate job.

Parameters
Job$job
Returns
Job $job

Definition at line 258 of file JobManager.php.

Here is the call graph for this function:

Here is the caller graph for this function:

JobManager::onAfterExecute (   $event)

{}

Definition at line 212 of file JobManager.php.

Here is the caller graph for this function:

JobManager::onBeforeExecute (   $event)

{}

Definition at line 204 of file JobManager.php.

Here is the caller graph for this function:

JobManager::prepareFindAttributes (   $class,
  $attributes 
)
private

Prepare find attributes.

Parameters
string$class
array$attributes
Returns
array

Definition at line 291 of file JobManager.php.

Here is the caller graph for this function:

JobManager::runJobs ( )

Run jobs.

Definition at line 162 of file JobManager.php.

Here is the call graph for this function:

JobManager::saveJob ( Job  $job)
protected

Save job.

Parameters
Job$job
Returns
boolean

Definition at line 224 of file JobManager.php.

Here is the caller graph for this function:

JobManager::syncJobs ( )

Synchronize jobs.

Definition at line 148 of file JobManager.php.

Here is the call graph for this function:

JobManager::timestampToDatabaseDate (   $timestamp = null)
protected

Convert timestamp to database date.

Parameters
string$timestamp
Returns
string

Definition at line 242 of file JobManager.php.

Here is the caller graph for this function:

Member Data Documentation

JobManager::$clearComponents = array()

Definition at line 17 of file JobManager.php.

JobManager::$executeAsync = true

Definition at line 24 of file JobManager.php.

JobManager::$jobs = array()

Definition at line 10 of file JobManager.php.

JobManager::$logClass = "application.modules.job.components.JobManager"
staticprotected

Definition at line 31 of file JobManager.php.


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