MediaWiki  REL1_22
CopyJobQueue Class Reference

Copy all jobs from one job queue system to another. More...

Inheritance diagram for CopyJobQueue:
Collaboration diagram for CopyJobQueue:

List of all members.

Public Member Functions

 __construct ()
 execute ()

Protected Member Functions

 copyJobs (JobQueue $src, JobQueue $dst, $jobs)

Detailed Description

Copy all jobs from one job queue system to another.

This uses an ad-hoc $wgJobQueueMigrationConfig setting, which is a map of queue system names to JobQueue::factory() parameters. The parameters should not have wiki or type settings and thus partial.

Definition at line 34 of file copyJobQueue.php.


Constructor & Destructor Documentation

Reimplemented from Maintenance.

Definition at line 35 of file copyJobQueue.php.

References Maintenance\addOption(), and Maintenance\setBatchSize().


Member Function Documentation

CopyJobQueue::copyJobs ( JobQueue src,
JobQueue dst,
jobs 
) [protected]

Definition at line 73 of file copyJobQueue.php.

References $batch, $job, $total, array(), as, JobQueue\push(), and JobQueue\waitForBackups().

Referenced by execute().


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