MediaWiki
REL1_22
|
A simple single-master LBFactory that gets its configuration from the b/c globals. More...
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. | |
Public Attributes | |
$chronProt | |
$extLBs = array() | |
LoadBalancer | $mainLB |
A simple single-master LBFactory that gets its configuration from the b/c globals.
Definition at line 170 of file LBFactory.php.
LBFactory_Simple::__construct | ( | $ | conf | ) |
Construct a factory based on a configuration array (typically from $wgLBFactoryConf)
$conf |
Reimplemented from LBFactory.
Definition at line 180 of file LBFactory.php.
LBFactory_Simple::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.
$callback | |
$params | array |
Reimplemented from LBFactory.
Definition at line 271 of file LBFactory.php.
& LBFactory_Simple::getExternalLB | ( | $ | cluster, |
$ | wiki = false |
||
) |
$cluster | |
$wiki |
Reimplemented from LBFactory.
Definition at line 255 of file LBFactory.php.
LBFactory_Simple::getMainLB | ( | $ | wiki = false | ) |
$wiki |
Reimplemented from LBFactory.
Definition at line 225 of file LBFactory.php.
LBFactory_Simple::newExternalLB | ( | $ | cluster, |
$ | wiki = false |
||
) |
MWException |
$cluster | |
$wiki |
Reimplemented from LBFactory.
Definition at line 240 of file LBFactory.php.
LBFactory_Simple::newMainLB | ( | $ | wiki = false | ) |
$wiki |
Reimplemented from LBFactory.
Definition at line 188 of file LBFactory.php.
Prepare all tracked load balancers for shutdown STUB.
Reimplemented from LBFactory.
Definition at line 280 of file LBFactory.php.
References as, and LBFactory\commitMasterChanges().
LBFactory_Simple::$chronProt |
Definition at line 178 of file LBFactory.php.
LBFactory_Simple::$extLBs = array() |
Definition at line 175 of file LBFactory.php.
LoadBalancer LBFactory_Simple::$mainLB |
Definition at line 174 of file LBFactory.php.