|
MediaWiki
REL1_23
|
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. | |
Protected Attributes | |
| ChronologyProtector | $chronProt |
| * | |
| LoadBalancer[] | $extLBs = array() |
| * | |
| LoadBalancer | $mainLB |
| * | |
A simple single-master LBFactory that gets its configuration from the b/c globals.
Definition at line 220 of file LBFactory.php.
| LBFactorySimple::__construct | ( | $ | conf | ) |
Construct a factory based on a configuration array (typically from $wgLBFactoryConf)
| array | $conf |
Reimplemented from LBFactory.
Definition at line 227 of file LBFactory.php.
| 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.
| callable | $callback | |
| array | $params |
Reimplemented from LBFactory.
Definition at line 325 of file LBFactory.php.
| & LBFactorySimple::getExternalLB | ( | $ | cluster, |
| $ | wiki = false |
||
| ) |
| string | $cluster | |
| bool | string | $wiki |
Reimplemented from LBFactory.
Definition at line 307 of file LBFactory.php.
| LBFactorySimple::getMainLB | ( | $ | wiki = false | ) |
| bool | string | $wiki |
Reimplemented from LBFactory.
Definition at line 275 of file LBFactory.php.
| LBFactorySimple::newExternalLB | ( | $ | cluster, |
| $ | wiki = false |
||
| ) |
| MWException |
| string | $cluster | |
| bool | string | $wiki |
Reimplemented from LBFactory.
Definition at line 291 of file LBFactory.php.
| LBFactorySimple::newMainLB | ( | $ | wiki = false | ) |
| bool | string | $wiki |
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 334 of file LBFactory.php.
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.