MediaWiki REL1_31
|
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. | |
notifyQueueEmpty ( $wiki, $type) | |
Mark a queue as being empty. | |
notifyQueueNonEmpty ( $wiki, $type) | |
Mark a queue as being non-empty. | |
purge () | |
Purge all of the aggregator information. | |
Static Public Member Functions | |
static | destroySingleton () |
Destroy the singleton instance. | |
static | singleton () |
Protected Member Functions | |
doGetAllReadyWikiQueues () | |
doNotifyQueueEmpty ( $wiki, $type) | |
doNotifyQueueNonEmpty ( $wiki, $type) | |
doPurge () | |
findPendingWikiQueues () | |
Get all databases that have a pending job. | |
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, 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, and $wgJobQueueAggregator.
Referenced by JobQueueGroup\get().
|
staticprotected |
Definition at line 31 of file JobQueueAggregator.php.
Referenced by singleton().