[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Advanced generator of database load balancing objects for wiki farms. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
File Size: | 399 lines (12 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
LBFactoryMulti:: (12 methods):
__construct()
getSectionForWiki()
newMainLB()
getMainLB()
newExternalLB()
getExternalLB()
newLoadBalancer()
makeServerArray()
reindexGroupLoads()
getDBNameAndPrefix()
forEachLB()
shutdown()
Class: LBFactoryMulti - X-Ref
A multi-wiki, multi-master factory for Wikimedia and similar installations.__construct( $conf ) X-Ref |
param: array $conf |
getSectionForWiki( $wiki = false ) X-Ref |
param: bool|string $wiki return: string |
newMainLB( $wiki = false ) X-Ref |
param: bool|string $wiki return: LoadBalancer |
getMainLB( $wiki = false ) X-Ref |
param: bool|string $wiki return: LoadBalancer |
newExternalLB( $cluster, $wiki = false ) X-Ref |
param: string $cluster param: bool|string $wiki return: LoadBalancer |
getExternalLB( $cluster, $wiki = false ) X-Ref |
param: string $cluster External storage cluster, or false for core param: bool|string $wiki Wiki ID, or false for the current wiki return: LoadBalancer |
newLoadBalancer( $template, $loads, $groupLoads ) X-Ref |
Make a new load balancer object based on template and load array param: array $template param: array $loads param: array $groupLoads return: LoadBalancer |
makeServerArray( $template, $loads, $groupLoads ) X-Ref |
Make a server array as expected by LoadBalancer::__construct, using a template and load array param: array $template param: array $loads param: array $groupLoads return: array |
reindexGroupLoads( $groupLoads ) X-Ref |
Take a group load array indexed by group then server, and reindex it by server then group param: array $groupLoads return: array |
getDBNameAndPrefix( $wiki = false ) X-Ref |
Get the database name and prefix based on the wiki ID param: bool|string $wiki return: array |
forEachLB( $callback, $params = array() X-Ref |
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. param: callable $callback param: array $params |
shutdown() X-Ref |
No description |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |