MediaWiki REL1_35
|
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) |
Decide which LBFactory class to use. | |
static | logDeprecation ( $msg) |
Log a database deprecation warning. | |
static | setDomainAliases (ILBFactory $lbFactory) |
Static Private Member Functions | |
static | assertValidServerConfigs (array $servers, $ldDB, $ldTP) |
static | getDbTypesWithSchemas () |
static | initServerInfo (array $server, ServiceOptions $options) |
static | reportIfPrefixSet ( $prefix, $dbType) |
static | reportMismatchedDBs ( $srvDB, $ldDB) |
static | reportMismatchedPrefixes ( $srvTP, $ldTP) |
Static Private Attributes | |
static array | $loggedDeprecations = [] |
Cache of already-logged deprecation messages. | |
MediaWiki-specific class for generating database load balancers.
Definition at line 33 of file MWLBFactory.php.
|
static |
array | $lbConf | Config for LBFactory::__construct() |
ServiceOptions | $options | |
ConfiguredReadOnlyMode | $readOnlyMode | |
BagOStuff | $srvCache | |
BagOStuff | $mainStash | |
WANObjectCache | $wanCache |
Definition at line 73 of file MWLBFactory.php.
References $wgCommandLineMode, MediaWiki\Config\ServiceOptions\assertRequiredOptions(), assertValidServerConfigs(), DBO_COMPRESS, DBO_SSL, MediaWiki\Config\ServiceOptions\get(), getDbTypesWithSchemas(), ConfiguredReadOnlyMode\getReason(), initServerInfo(), and wfHostname().
|
staticprivate |
array | $servers | |
string | $ldDB | Local domain database name |
string | $ldTP | Local domain prefix |
Definition at line 232 of file MWLBFactory.php.
References $type, reportIfPrefixSet(), reportMismatchedDBs(), and reportMismatchedPrefixes().
Referenced by applyDefaultConfig().
|
staticprivate |
|
static |
Decide which LBFactory class to use.
Definition at line 310 of file MWLBFactory.php.
|
staticprivate |
array | $server | |
ServiceOptions | $options |
Definition at line 179 of file MWLBFactory.php.
References DBO_DEBUG, DBO_DEFAULT, MediaWiki\Config\ServiceOptions\get(), and MW_ENTRY_POINT.
Referenced by applyDefaultConfig().
|
static |
Log a database deprecation warning.
string | $msg | Deprecation message |
Definition at line 345 of file MWLBFactory.php.
References wfGetCaller().
|
staticprivate |
string | $prefix | Table prefix |
string | $dbType | Database type |
Definition at line 260 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 273 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 290 of file MWLBFactory.php.
References MWExceptionRenderer\AS_PRETTY, and MWExceptionRenderer\output().
Referenced by assertValidServerConfigs().
|
static |
ILBFactory | $lbFactory |
Definition at line 329 of file MWLBFactory.php.
References Wikimedia\Rdbms\ILBFactory\getLocalDomainID(), and Wikimedia\Rdbms\ILBFactory\setDomainAliases().
|
staticprivate |
Cache of already-logged deprecation messages.
Definition at line 36 of file MWLBFactory.php.