MediaWiki master
MediaWiki\DB\MWLBFactory Class Reference

MediaWiki-specific class for generating database load balancers. More...

Public Member Functions

 __construct (ConfiguredReadOnlyMode $readOnlyMode, ChronologyProtector $chronologyProtector, BagOStuff $srvCache, WANObjectCache $wanCache, CriticalSectionProvider $csProvider, StatsFactory $statsFactory, TracerInterface $tracer, ?string $uniqueIdentifier=null)
 
 applyServices (array $lbConf)
 
 getLBFactoryClass (array $config)
 Decide which LBFactory class to use.
 
 setDomainAliases (ILBFactory $lbFactory)
 

Static Public Member Functions

static logDeprecation (string $msg)
 Log a database deprecation warning.
 

Detailed Description

MediaWiki-specific class for generating database load balancers.

Access: internal
For use by core ServiceWiring only.

Definition at line 38 of file MWLBFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\DB\MWLBFactory::__construct ( ConfiguredReadOnlyMode $readOnlyMode,
ChronologyProtector $chronologyProtector,
BagOStuff $srvCache,
WANObjectCache $wanCache,
CriticalSectionProvider $csProvider,
StatsFactory $statsFactory,
TracerInterface $tracer,
?string $uniqueIdentifier = null )
Parameters
ConfiguredReadOnlyMode$readOnlyMode
ChronologyProtector$chronologyProtector
BagOStuff$srvCache
WANObjectCache$wanCache
CriticalSectionProvider$csProvider
StatsFactory$statsFactory
TracerInterface$tracer
?string$uniqueIdentifier

Definition at line 63 of file MWLBFactory.php.

Member Function Documentation

◆ applyServices()

MediaWiki\DB\MWLBFactory::applyServices ( array $lbConf)
Parameters
array$lbConfConfig for LBFactory::__construct()
Returns
array
Access: internal
For use with service wiring

Definition at line 88 of file MWLBFactory.php.

◆ getLBFactoryClass()

MediaWiki\DB\MWLBFactory::getLBFactoryClass ( array $config)

Decide which LBFactory class to use.

Access: internal
For use by ServiceWiring
Parameters
array$config(e.g. $wgLBFactoryConf)
Returns
class-string<LBFactory>

Definition at line 124 of file MWLBFactory.php.

◆ logDeprecation()

static MediaWiki\DB\MWLBFactory::logDeprecation ( string $msg)
static

Log a database deprecation warning.

Parameters
string$msgDeprecation message

Definition at line 156 of file MWLBFactory.php.

◆ setDomainAliases()

MediaWiki\DB\MWLBFactory::setDomainAliases ( ILBFactory $lbFactory)

Definition at line 140 of file MWLBFactory.php.


The documentation for this class was generated from the following file: