MediaWiki
1.28.0
|
Class to handle tracking information about all queues using PhpRedis. More...
Public Member Functions | |
__construct (array $params) | |
Public Member Functions inherited from JobQueueAggregator | |
__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... | |
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. More... | |
Protected Member Functions inherited from JobQueueAggregator | |
doGetAllReadyWikiQueues () | |
doNotifyQueueEmpty ($wiki, $type) | |
doNotifyQueueNonEmpty ($wiki, $type) | |
doPurge () | |
findPendingWikiQueues () | |
Get all databases that have a pending job. More... | |
Protected Attributes | |
LoggerInterface | $logger |
RedisConnectionPool | $redisPool |
array | $servers |
List of Redis server addresses. More... | |
Private Member Functions | |
decodeQueueName ($name) | |
getReadyQueueKey () | |
Additional Inherited Members | |
Static Public Member Functions inherited from JobQueueAggregator | |
static | destroySingleton () |
Destroy the singleton instance. More... | |
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 34 of file JobQueueAggregatorRedis.php.
JobQueueAggregatorRedis::__construct | ( | array | $params | ) |
array | $params | Possible keys:
|
Definition at line 51 of file JobQueueAggregatorRedis.php.
References MediaWiki\Logger\LoggerFactory\getInstance(), servers, and RedisConnectionPool\singleton().
|
private |
string | $name |
Definition at line 131 of file JobQueueAggregatorRedis.php.
References $name, $type, and list.
Referenced by doGetAllReadyWikiQueues().
|
protected |
Definition at line 69 of file JobQueueAggregatorRedis.php.
References $e, $time, $type, as, decodeQueueName(), getConnection(), getReadyQueueKey(), and list.
|
protected |
Definition at line 61 of file JobQueueAggregatorRedis.php.
|
protected |
Definition at line 65 of file JobQueueAggregatorRedis.php.
|
protected |
Definition at line 98 of file JobQueueAggregatorRedis.php.
|
protected |
Get a connection to the server that handles all sub-queues for this queue.
MWException |
Definition at line 108 of file JobQueueAggregatorRedis.php.
Referenced by doGetAllReadyWikiQueues().
|
private |
Definition at line 123 of file JobQueueAggregatorRedis.php.
Referenced by doGetAllReadyWikiQueues().
|
protected |
Definition at line 38 of file JobQueueAggregatorRedis.php.
|
protected |
Definition at line 36 of file JobQueueAggregatorRedis.php.
|
protected |
List of Redis server addresses.
Definition at line 40 of file JobQueueAggregatorRedis.php.