MediaWiki  1.23.15
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...
 
 getLagTimes ( $serverIndexes, $wiki)
 Return an estimate of replication lag for each server. More...
 
 scaleLoads (&$loads, $group=false, $wiki=false)
 Perform pre-connection load ratio adjustment. More...
 

Detailed Description

Definition at line 56 of file LoadMonitor.php.

Constructor & Destructor Documentation

◆ __construct()

LoadMonitorNull::__construct (   $parent)

Construct a new LoadMonitor with a given LoadBalancer parent.

Parameters
LoadBalancer$parent

Implements LoadMonitor.

Definition at line 57 of file LoadMonitor.php.

Member Function Documentation

◆ getLagTimes()

LoadMonitorNull::getLagTimes (   $serverIndexes,
  $wiki 
)

Return an estimate of replication lag for each server.

Parameters
array$serverIndexes
string$wiki
Returns
array

Implements LoadMonitor.

Definition at line 63 of file LoadMonitor.php.

◆ scaleLoads()

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 60 of file LoadMonitor.php.


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