MediaWiki
1.34.0
|
MediaWiki-specific class for generating database load balancers. More...
Static Public Member Functions | |
static | applyDefaultConfig (array $lbConf, ServiceOptions $options, ConfiguredReadOnlyMode $readOnlyMode, BagOStuff $srvCache, BagOStuff $mainStash, WANObjectCache $wanCache) |
static | getLBFactoryClass (array $config) |
Returns the LBFactory class to use and the load balancer configuration. More... | |
static | logDeprecation ( $msg) |
Log a database deprecation warning. More... | |
Static Private Member Functions | |
static | assertValidServerConfigs (array $servers, $ldDB, $ldTP) |
static | getDbTypesWithSchemas () |
static | initServerInfo (array $server, ServiceOptions $options) |
static | injectObjectCaches (array $lbConf, BagOStuff $sCache, BagOStuff $mStash, WANObjectCache $wCache) |
static | reportIfPrefixSet ( $prefix, $dbType) |
static | reportMismatchedDBs ( $srvDB, $ldDB) |
static | reportMismatchedPrefixes ( $srvTP, $ldTP) |
Static Private Attributes | |
static array | $loggedDeprecations = [] |
Cache of already-logged deprecation messages. More... | |
MediaWiki-specific class for generating database load balancers.
Definition at line 32 of file MWLBFactory.php.
|
static |
array | $lbConf | Config for LBFactory::__construct() |
ServiceOptions | $options | |
ConfiguredReadOnlyMode | $readOnlyMode | |
BagOStuff | $srvCache | |
BagOStuff | $mainStash | |
WANObjectCache | $wanCache |
Definition at line 72 of file MWLBFactory.php.
References $wgCommandLineMode, MediaWiki\Config\ServiceOptions\assertRequiredOptions(), assertValidServerConfigs(), DBO_COMPRESS, DBO_SSL, MediaWiki\Config\ServiceOptions\get(), getDbTypesWithSchemas(), ConfiguredReadOnlyMode\getReason(), initServerInfo(), injectObjectCaches(), Profiler\instance(), and wfHostname().
|
staticprivate |
array | $servers | |
string | $ldDB | Local domain database name |
string | $ldTP | Local domain prefix |
Definition at line 247 of file MWLBFactory.php.
References $type, reportIfPrefixSet(), reportMismatchedDBs(), and reportMismatchedPrefixes().
Referenced by applyDefaultConfig().
|
staticprivate |
|
static |
Returns the LBFactory class to use and the load balancer configuration.
array | $config | (e.g. $wgLBFactoryConf) |
Definition at line 327 of file MWLBFactory.php.
References wfDeprecated().
|
staticprivate |
array | $server | |
ServiceOptions | $options |
Definition at line 176 of file MWLBFactory.php.
References DBO_DEBUG, DBO_DEFAULT, and MediaWiki\Config\ServiceOptions\get().
Referenced by applyDefaultConfig().
|
staticprivate |
array | $lbConf | |
BagOStuff | $sCache | |
BagOStuff | $mStash | |
WANObjectCache | $wCache |
Definition at line 220 of file MWLBFactory.php.
References BagOStuff\getQoS(), and WANObjectCache\getQoS().
Referenced by applyDefaultConfig().
|
static |
Log a database deprecation warning.
string | $msg | Deprecation message |
Definition at line 365 of file MWLBFactory.php.
References $wgDevelopmentWarnings, and wfDebugLog().
|
staticprivate |
string | $prefix | Table prefix |
string | $dbType | Database type |
Definition at line 275 of file MWLBFactory.php.
References MWExceptionRenderer\AS_PRETTY, and MWExceptionRenderer\output().
Referenced by assertValidServerConfigs().
|
staticprivate |
string | $srvDB | Server config database |
string | $ldDB | Local DB domain database |
Definition at line 288 of file MWLBFactory.php.
References MWExceptionRenderer\AS_PRETTY, and MWExceptionRenderer\output().
Referenced by assertValidServerConfigs().
|
staticprivate |
string | $srvTP | Server config table prefix |
string | $ldTP | Local DB domain database |
Definition at line 305 of file MWLBFactory.php.
References MWExceptionRenderer\AS_PRETTY, and MWExceptionRenderer\output().
Referenced by assertValidServerConfigs().
|
staticprivate |
Cache of already-logged deprecation messages.
Definition at line 35 of file MWLBFactory.php.