MediaWiki  REL1_20
LBFactory_Simple Class Reference

A simple single-master LBFactory that gets its configuration from the b/c globals. More...

Inheritance diagram for LBFactory_Simple:
Collaboration diagram for LBFactory_Simple:

List of all members.

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()
LoadBalancer $mainLB

Detailed Description

A simple single-master LBFactory that gets its configuration from the b/c globals.

Definition at line 169 of file LBFactory.php.


Constructor & Destructor Documentation

Construct a factory based on a configuration array (typically from $wgLBFactoryConf)

Parameters:
$conf

Reimplemented from LBFactory.

Definition at line 179 of file LBFactory.php.


Member Function Documentation

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.

Parameters:
$callback
$paramsarray

Reimplemented from LBFactory.

Definition at line 269 of file LBFactory.php.

& LBFactory_Simple::getExternalLB ( cluster,
wiki = false 
)
Parameters:
$cluster
$wiki
Returns:
array

Reimplemented from LBFactory.

Definition at line 254 of file LBFactory.php.

Parameters:
$wiki
Returns:
LoadBalancer

Reimplemented from LBFactory.

Definition at line 224 of file LBFactory.php.

LBFactory_Simple::newExternalLB ( cluster,
wiki = false 
)
Exceptions:
MWException
Parameters:
$cluster
$wiki
Returns:
LoadBalancer

Reimplemented from LBFactory.

Definition at line 239 of file LBFactory.php.

Parameters:
$wiki
Returns:
LoadBalancer

Reimplemented from LBFactory.

Definition at line 187 of file LBFactory.php.

Prepare all tracked load balancers for shutdown STUB.

Reimplemented from LBFactory.

Definition at line 278 of file LBFactory.php.

References LBFactory\commitMasterChanges().


Member Data Documentation

LBFactory_Simple::$chronProt

Definition at line 177 of file LBFactory.php.

LBFactory_Simple::$extLBs = array()

Definition at line 174 of file LBFactory.php.

LoadBalancer LBFactory_Simple::$mainLB

Definition at line 173 of file LBFactory.php.


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