MediaWiki
REL1_19
|
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() | |
$mainLB |
A simple single-master LBFactory that gets its configuration from the b/c globals.
Definition at line 154 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 165 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 245 of file LBFactory.php.
References $lb.
& LBFactory_Simple::getExternalLB | ( | $ | cluster, |
$ | wiki = false |
||
) |
$cluster | |
$wiki |
Reimplemented from LBFactory.
Definition at line 230 of file LBFactory.php.
References newExternalLB().
LBFactory_Simple::getMainLB | ( | $ | wiki = false | ) |
$wiki |
Reimplemented from LBFactory.
Definition at line 200 of file LBFactory.php.
References newMainLB().
LBFactory_Simple::newExternalLB | ( | $ | cluster, |
$ | wiki = false |
||
) |
MWException |
$cluster | |
$wiki |
Reimplemented from LBFactory.
Definition at line 215 of file LBFactory.php.
References $wgExternalServers.
Referenced by getExternalLB().
LBFactory_Simple::newMainLB | ( | $ | wiki = false | ) |
$wiki |
Reimplemented from LBFactory.
Definition at line 173 of file LBFactory.php.
References $wgDBname, $wgDBpassword, $wgDBserver, $wgDBservers, $wgDBtype, $wgDBuser, $wgDebugDumpSql, and $wgMasterWaitTimeout.
Referenced by getMainLB().
Prepare all tracked load balancers for shutdown STUB.
Reimplemented from LBFactory.
Definition at line 254 of file LBFactory.php.
References LBFactory\commitMasterChanges().
LBFactory_Simple::$chronProt |
Definition at line 163 of file LBFactory.php.
LBFactory_Simple::$extLBs = array() |
Definition at line 160 of file LBFactory.php.
LBFactory_Simple::$mainLB |
Definition at line 159 of file LBFactory.php.