MediaWiki  REL1_20
nextJobDB Class Reference

Maintenance script that picks a database that has pending jobs. More...

Inheritance diagram for nextJobDB:
Collaboration diagram for nextJobDB:

List of all members.

Public Member Functions

 __construct ()
 Default constructor.
 checkJob ($type, $dbName)
 Check if the specified database has a job of the specified type in it.
 execute ()
 Do the actual work.

Private Member Functions

 getPendingDbs ()
 Get all databases that have a pending job.

Detailed Description

Maintenance script that picks a database that has pending jobs.

Definition at line 32 of file nextJobDB.php.


Constructor & Destructor Documentation

Default constructor.

Children should call this *first* if implementing their own constructors

Reimplemented from Maintenance.

Definition at line 33 of file nextJobDB.php.

References Maintenance\addOption().


Member Function Documentation

nextJobDB::checkJob ( type,
dbName 
)

Check if the specified database has a job of the specified type in it.

The type may be false to indicate "all".

Parameters:
$typestring
$dbNamestring
Returns:
bool

Definition at line 99 of file nextJobDB.php.

References $lb, Job\defaultQueueConditions(), and wfGetLB().

Referenced by execute().

Do the actual work.

All child classes will need to implement this

Reimplemented from Maintenance.

Definition at line 39 of file nextJobDB.php.

References $wgMemc, checkJob(), Maintenance\getOption(), getPendingDbs(), and Maintenance\output().

nextJobDB::getPendingDbs ( ) [private]

Get all databases that have a pending job.

Returns:
array

Definition at line 118 of file nextJobDB.php.

References $lb, $res, wfGetDB(), wfGetLB(), and wfSplitWikiID().

Referenced by execute().


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