MediaWiki  REL1_22
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)
 doPurge ()
 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 31 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 42 of file JobQueueAggregatorRedis.php.


Member Function Documentation

Parameters:
string$name
Returns:
string

Definition at line 188 of file JobQueueAggregatorRedis.php.

See also:
JobQueueAggregator::doAllGetReadyWikiQueues()

Reimplemented from JobQueueAggregator.

Definition at line 85 of file JobQueueAggregatorRedis.php.

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

Reimplemented from JobQueueAggregator.

Definition at line 51 of file JobQueueAggregatorRedis.php.

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

Reimplemented from JobQueueAggregator.

Definition at line 68 of file JobQueueAggregatorRedis.php.

See also:
JobQueueAggregator::doPurge()

Reimplemented from JobQueueAggregator.

Definition at line 135 of file JobQueueAggregatorRedis.php.

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

Definition at line 180 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 155 of file JobQueueAggregatorRedis.php.

Returns:
string

Definition at line 171 of file JobQueueAggregatorRedis.php.

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

Definition at line 164 of file JobQueueAggregatorRedis.php.


Member Data Documentation

RedisConnectionPool JobQueueAggregatorRedis::$redisPool [protected]

*

Definition at line 32 of file JobQueueAggregatorRedis.php.


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