MediaWiki REL1_31
|
Class to handle tracking information about all queues using PhpRedis. More...
Public Member Functions | |
__construct (array $params) | |
Public Member Functions inherited from JobQueueAggregator | |
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. | |
Protected Member Functions | |
doGetAllReadyWikiQueues () | |
doNotifyQueueEmpty ( $wiki, $type) | |
doNotifyQueueNonEmpty ( $wiki, $type) | |
doPurge () | |
getConnection () | |
Get a connection to the server that handles all sub-queues for this queue. | |
Protected Member Functions inherited from JobQueueAggregator | |
findPendingWikiQueues () | |
Get all databases that have a pending job. | |
Protected Attributes | |
LoggerInterface | $logger |
RedisConnectionPool | $redisPool |
array | $servers |
List of Redis server addresses. | |
Private Member Functions | |
decodeQueueName ( $name) | |
getReadyQueueKey () | |
Additional Inherited Members | |
Static Public Member Functions inherited from JobQueueAggregator | |
static | destroySingleton () |
Destroy the singleton instance. | |
static | singleton () |
Static Protected Attributes inherited from JobQueueAggregator | |
static JobQueueAggregator | $instance = null |
Class to handle tracking information about all queues using PhpRedis.
The mediawiki/services/jobrunner background service must be set up and running.
Definition at line 33 of file JobQueueAggregatorRedis.php.
JobQueueAggregatorRedis::__construct | ( | array | $params | ) |
array | $params | Possible keys:
|
Reimplemented from JobQueueAggregator.
Definition at line 50 of file JobQueueAggregatorRedis.php.
References $params, servers, and RedisConnectionPool\singleton().
|
private |
string | $name |
Definition at line 130 of file JobQueueAggregatorRedis.php.
Referenced by doGetAllReadyWikiQueues().
|
protected |
Reimplemented from JobQueueAggregator.
Definition at line 68 of file JobQueueAggregatorRedis.php.
References $e, $time, $type, decodeQueueName(), getConnection(), getReadyQueueKey(), and list.
|
protected |
string | $wiki | |
string | $type |
Reimplemented from JobQueueAggregator.
Definition at line 60 of file JobQueueAggregatorRedis.php.
|
protected |
string | $wiki | |
string | $type |
Reimplemented from JobQueueAggregator.
Definition at line 64 of file JobQueueAggregatorRedis.php.
|
protected |
Reimplemented from JobQueueAggregator.
Definition at line 97 of file JobQueueAggregatorRedis.php.
|
protected |
Get a connection to the server that handles all sub-queues for this queue.
MWException |
Definition at line 107 of file JobQueueAggregatorRedis.php.
References servers.
Referenced by doGetAllReadyWikiQueues().
|
private |
Definition at line 122 of file JobQueueAggregatorRedis.php.
Referenced by doGetAllReadyWikiQueues().
|
protected |
Definition at line 37 of file JobQueueAggregatorRedis.php.
|
protected |
Definition at line 35 of file JobQueueAggregatorRedis.php.
|
protected |
List of Redis server addresses.
Definition at line 39 of file JobQueueAggregatorRedis.php.