MediaWiki
1.30.0
|
Class to handle tracking information about all queues. More...
Public Member Functions | |
__construct (array $params) | |
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 | |
doGetAllReadyWikiQueues () | |
doNotifyQueueEmpty ( $wiki, $type) | |
doNotifyQueueNonEmpty ( $wiki, $type) | |
doPurge () | |
findPendingWikiQueues () | |
Get all databases that have a pending job. More... | |
Static Protected Attributes | |
static JobQueueAggregator | $instance = null |
Class to handle tracking information about all queues.
Definition at line 29 of file JobQueueAggregator.php.
JobQueueAggregator::__construct | ( | array | $params | ) |
array | $params |
Reimplemented in JobQueueAggregatorRedis.
Definition at line 36 of file JobQueueAggregator.php.
|
staticfinal |
|
abstractprotected |
Reimplemented in JobQueueAggregatorNull, and JobQueueAggregatorRedis.
Referenced by getAllReadyWikiQueues().
|
abstractprotected |
string | $wiki | |
string | $type |
Reimplemented in JobQueueAggregatorNull, and JobQueueAggregatorRedis.
Referenced by notifyQueueEmpty().
|
abstractprotected |
string | $wiki | |
string | $type |
Reimplemented in JobQueueAggregatorNull, and JobQueueAggregatorRedis.
Referenced by notifyQueueNonEmpty().
|
abstractprotected |
Reimplemented in JobQueueAggregatorNull, and JobQueueAggregatorRedis.
Referenced by purge().
|
protected |
Get all databases that have a pending job.
This poll all the queues and is this expensive.
Definition at line 147 of file JobQueueAggregator.php.
References $type, $wgLocalDatabases, as, global, and JobQueueGroup\singleton().
|
final |
Get the list of all of the queues with jobs.
Definition at line 114 of file JobQueueAggregator.php.
References $res, and doGetAllReadyWikiQueues().
|
final |
Mark a queue as being empty.
string | $wiki | |
string | $type |
Definition at line 74 of file JobQueueAggregator.php.
References $type, and doNotifyQueueEmpty().
|
final |
Mark a queue as being non-empty.
string | $wiki | |
string | $type |
Definition at line 95 of file JobQueueAggregator.php.
References $type, and doNotifyQueueNonEmpty().
|
final |
Purge all of the aggregator information.
Definition at line 130 of file JobQueueAggregator.php.
|
staticfinal |
MWException |
Definition at line 43 of file JobQueueAggregator.php.
References $instance, $wgJobQueueAggregator, and global.
Referenced by JobQueueGroup\get().
|
staticprotected |
Definition at line 31 of file JobQueueAggregator.php.
Referenced by singleton().