MediaWiki  REL1_21
JobQueueAggregatorRedis Class Reference

Class to handle tracking information about all queues using PhpRedis. More...

Inheritance diagram for JobQueueAggregatorRedis:
Collaboration diagram for JobQueueAggregatorRedis:

List of all members.

Protected Member Functions

 __construct (array $params)
 include:
 doGetAllReadyWikiQueues ()
 doNotifyQueueEmpty ($wiki, $type)
 doNotifyQueueNonEmpty ($wiki, $type)
 getConnection ()
 Get a connection to the server that handles all sub-queues for this queue.
 handleException (RedisConnRef $conn, $e)

Protected Attributes

RedisConnectionPool $redisPool
 *

Private Member Functions

 dencQueueName ($name)
 encQueueName ($type, $wiki)
 getReadyQueueKey ()

Detailed Description

Class to handle tracking information about all queues using PhpRedis.

Since:
1.21

Definition at line 30 of file JobQueueAggregatorRedis.php.


Constructor & Destructor Documentation

JobQueueAggregatorRedis::__construct ( array params) [protected]

include:

  • redisConfig : An array of parameters to RedisConnectionPool::__construct().
  • redisServer : A hostname/port combination or the absolute path of a UNIX socket. If a hostname is specified but no port, the standard port number 6379 will be used. Required.
    Parameters:
    array$params

Reimplemented from JobQueueAggregator.

Definition at line 41 of file JobQueueAggregatorRedis.php.


Member Function Documentation

Parameters:
string$name
Returns:
string

Definition at line 160 of file JobQueueAggregatorRedis.php.

See also:
JobQueueAggregator::doAllGetReadyWikiQueues()

Reimplemented from JobQueueAggregator.

Definition at line 84 of file JobQueueAggregatorRedis.php.

JobQueueAggregatorRedis::doNotifyQueueEmpty ( wiki,
type 
) [protected]
See also:
JobQueueAggregator::doNotifyQueueEmpty()

Reimplemented from JobQueueAggregator.

Definition at line 50 of file JobQueueAggregatorRedis.php.

JobQueueAggregatorRedis::doNotifyQueueNonEmpty ( wiki,
type 
) [protected]
See also:
JobQueueAggregator::doNotifyQueueNonEmpty()

Reimplemented from JobQueueAggregator.

Definition at line 67 of file JobQueueAggregatorRedis.php.

JobQueueAggregatorRedis::encQueueName ( type,
wiki 
) [private]
Parameters:
string$type
string$wiki
Returns:
string

Definition at line 152 of file JobQueueAggregatorRedis.php.

Get a connection to the server that handles all sub-queues for this queue.

Returns:
Array (server name, Redis instance)
Exceptions:
MWException

Definition at line 127 of file JobQueueAggregatorRedis.php.

Returns:
string

Definition at line 143 of file JobQueueAggregatorRedis.php.

JobQueueAggregatorRedis::handleException ( RedisConnRef conn,
e 
) [protected]
Parameters:
RedisConnRef$conn
RedisException$e
Returns:
void

Definition at line 136 of file JobQueueAggregatorRedis.php.


Member Data Documentation

RedisConnectionPool JobQueueAggregatorRedis::$redisPool [protected]

*

Definition at line 31 of file JobQueueAggregatorRedis.php.


The documentation for this class was generated from the following file: