MediaWiki  1.27.2
LoadMonitorNull Class Reference
Inheritance diagram for LoadMonitorNull:
Collaboration diagram for LoadMonitorNull:

Public Member Functions

 __construct ($parent)
 Construct a new LoadMonitor with a given LoadBalancer parent. More...
 
 clearCaches ()
 Clear any process and persistent cache of lag times. More...
 
 getLagTimes ($serverIndexes, $wiki)
 Get an estimate of replication lag (in seconds) for each server. More...
 
 scaleLoads (&$loads, $group=false, $wiki=false)
 Perform pre-connection load ratio adjustment. More...
 

Detailed Description

Definition at line 64 of file LoadMonitor.php.

Constructor & Destructor Documentation

LoadMonitorNull::__construct (   $parent)

Construct a new LoadMonitor with a given LoadBalancer parent.

Parameters
LoadBalancer$parent

Implements LoadMonitor.

Definition at line 65 of file LoadMonitor.php.

Member Function Documentation

LoadMonitorNull::clearCaches ( )

Clear any process and persistent cache of lag times.

Since
1.27

Implements LoadMonitor.

Definition at line 75 of file LoadMonitor.php.

LoadMonitorNull::getLagTimes (   $serverIndexes,
  $wiki 
)

Get an estimate of replication lag (in seconds) for each server.

Values may be "false" if replication is too broken to estimate

Parameters
array$serverIndexes
string$wiki
Returns
array Map of (server index => float|int|bool)

Implements LoadMonitor.

Definition at line 71 of file LoadMonitor.php.

LoadMonitorNull::scaleLoads ( $loads,
  $group = false,
  $wiki = false 
)

Perform pre-connection load ratio adjustment.

Parameters
array&$loads
string | bool$groupThe selected query group. Default: false
string | bool$wikiDefault: false

Implements LoadMonitor.

Definition at line 68 of file LoadMonitor.php.


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