MediaWiki  REL1_24
LoadMonitor Interface Reference

An interface for database load monitoring. More...

Inheritance diagram for LoadMonitor:

List of all members.

Public Member Functions

 __construct ($parent)
 Construct a new LoadMonitor with a given LoadBalancer parent.
 getLagTimes ($serverIndexes, $wiki)
 Return an estimate of replication lag for each server.
 scaleLoads (&$loads, $group=false, $wiki=false)
 Perform pre-connection load ratio adjustment.

Detailed Description

An interface for database load monitoring.

Definition at line 29 of file LoadMonitor.php.


Constructor & Destructor Documentation

LoadMonitor::__construct ( parent)

Construct a new LoadMonitor with a given LoadBalancer parent.

Parameters:
LoadBalancer$parent

Implemented in LoadMonitorMySQL, and LoadMonitorNull.


Member Function Documentation

LoadMonitor::getLagTimes ( serverIndexes,
wiki 
)

Return an estimate of replication lag for each server.

Parameters:
array$serverIndexes
string$wiki
Returns:
array

Implemented in LoadMonitorMySQL, and LoadMonitorNull.

LoadMonitor::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

Implemented in LoadMonitorMySQL, and LoadMonitorNull.


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