|
MediaWiki
1.23.0
|
Class to handle tracking information about all queues. More...

Public Member Functions | |
| getAllReadyWikiQueues () | |
| Get the list of all of the queues with jobs. More... | |
| notifyQueueEmpty ( $wiki, $type) | |
| Mark a queue as being empty. More... | |
| notifyQueueNonEmpty ( $wiki, $type) | |
| Mark a queue as being non-empty. More... | |
| purge () | |
| Purge all of the aggregator information. More... | |
Static Public Member Functions | |
| static | destroySingleton () |
| Destroy the singleton instance. More... | |
| static | singleton () |
Protected Member Functions | |
| __construct (array $params) | |
| doGetAllReadyWikiQueues () | |
| doNotifyQueueEmpty ( $wiki, $type) | |
| doNotifyQueueNonEmpty ( $wiki, $type) | |
| doPurge () | |
| findPendingWikiQueues () | |
| Get all databases that have a pending job. More... | |
Static Protected Attributes | |
| static | $instance = null |
Class to handle tracking information about all queues.
Definition at line 30 of file JobQueueAggregator.php.
|
protected |
| array | $params |
Reimplemented in JobQueueAggregatorRedis, and JobQueueAggregatorMemc.
Definition at line 37 of file JobQueueAggregator.php.
|
staticfinal |
|
abstractprotected |
Reimplemented in JobQueueAggregatorRedis, and JobQueueAggregatorMemc.
Referenced by getAllReadyWikiQueues().
|
abstractprotected |
Reimplemented in JobQueueAggregatorRedis, and JobQueueAggregatorMemc.
Referenced by notifyQueueEmpty().
|
abstractprotected |
Reimplemented in JobQueueAggregatorMemc, and JobQueueAggregatorRedis.
Referenced by notifyQueueNonEmpty().
|
abstractprotected |
Reimplemented in JobQueueAggregatorRedis, and JobQueueAggregatorMemc.
Referenced by purge().
|
protected |
Get all databases that have a pending job.
This poll all the queues and is this expensive.
Definition at line 150 of file JobQueueAggregator.php.
References $type, array(), as, global, and JobQueueGroup\singleton().
Referenced by JobQueueAggregatorMemc\doGetAllReadyWikiQueues(), and JobQueueAggregatorRedis\doGetAllReadyWikiQueues().
|
final |
Get the list of all of the queues with jobs.
Definition at line 113 of file JobQueueAggregator.php.
References $res, doGetAllReadyWikiQueues(), wfProfileIn(), and wfProfileOut().
|
final |
Mark a queue as being empty.
| string | $wiki | |
| string | $type |
Definition at line 75 of file JobQueueAggregator.php.
References $ok, $type, doNotifyQueueEmpty(), wfProfileIn(), and wfProfileOut().
|
final |
Mark a queue as being non-empty.
| string | $wiki | |
| string | $type |
Definition at line 95 of file JobQueueAggregator.php.
References $ok, $type, doNotifyQueueNonEmpty(), wfProfileIn(), and wfProfileOut().
|
final |
Purge all of the aggregator information.
Definition at line 131 of file JobQueueAggregator.php.
References $res, doPurge(), wfProfileIn(), and wfProfileOut().
|
staticfinal |
| MWException |
Definition at line 44 of file JobQueueAggregator.php.
References $instance, and global.
Referenced by NextJobDB\execute(), JobQueueGroup\executeReadyPeriodicTasks(), JobQueueGroup\pop(), and JobQueueGroup\push().
|
staticprotected |
Definition at line 32 of file JobQueueAggregator.php.
Referenced by singleton().