MediaWiki  REL1_24
LBFactorySimple Class Reference

A simple single-master LBFactory that gets its configuration from the b/c globals. More...

Inheritance diagram for LBFactorySimple:
Collaboration diagram for LBFactorySimple:

List of all members.

Public Member Functions

 __construct ($conf)
 Construct a factory based on a configuration array (typically from $wgLBFactoryConf)
 forEachLB ($callback, $params=array())
 Execute a function for each tracked load balancer The callback is called with the load balancer as the first parameter, and $params passed as the subsequent parameters.
getExternalLB ($cluster, $wiki=false)
 getMainLB ($wiki=false)
 newExternalLB ($cluster, $wiki=false)
 newMainLB ($wiki=false)
 shutdown ()
 Prepare all tracked load balancers for shutdown STUB.

Protected Attributes

ChronologyProtector $chronProt
 *
LoadBalancer[] $extLBs = array()
 *
LoadBalancer $mainLB
 *

Detailed Description

A simple single-master LBFactory that gets its configuration from the b/c globals.

Definition at line 220 of file LBFactory.php.


Constructor & Destructor Documentation

Construct a factory based on a configuration array (typically from $wgLBFactoryConf)

Parameters:
array$conf

Reimplemented from LBFactory.

Definition at line 227 of file LBFactory.php.


Member Function Documentation

LBFactorySimple::forEachLB ( callback,
params = array() 
)

Execute a function for each tracked load balancer The callback is called with the load balancer as the first parameter, and $params passed as the subsequent parameters.

Parameters:
callable$callback
array$params

Reimplemented from LBFactory.

Definition at line 324 of file LBFactory.php.

& LBFactorySimple::getExternalLB ( cluster,
wiki = false 
)
Parameters:
string$cluster
bool | string$wiki
Returns:
array

Reimplemented from LBFactory.

Definition at line 306 of file LBFactory.php.

Parameters:
bool | string$wiki
Returns:
LoadBalancer

Reimplemented from LBFactory.

Definition at line 274 of file LBFactory.php.

LBFactorySimple::newExternalLB ( cluster,
wiki = false 
)
Exceptions:
MWException
Parameters:
string$cluster
bool | string$wiki
Returns:
LoadBalancer

Reimplemented from LBFactory.

Definition at line 290 of file LBFactory.php.

Parameters:
bool | string$wiki
Returns:
LoadBalancer

Reimplemented from LBFactory.

Definition at line 235 of file LBFactory.php.

Prepare all tracked load balancers for shutdown STUB.

Reimplemented from LBFactory.

Definition at line 333 of file LBFactory.php.


Member Data Documentation

ChronologyProtector LBFactorySimple::$chronProt [protected]

*

Definition at line 225 of file LBFactory.php.

LoadBalancer [] LBFactorySimple::$extLBs = array() [protected]

*

Definition at line 223 of file LBFactory.php.

LoadBalancer LBFactorySimple::$mainLB [protected]

*

Definition at line 221 of file LBFactory.php.


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