MediaWiki  REL1_19
LoadMonitor_Null Class Reference
Inheritance diagram for LoadMonitor_Null:
Collaboration diagram for LoadMonitor_Null:

List of all members.

Public Member Functions

 __construct ($parent)
 Construct a new LoadMonitor with a given LoadBalancer parent.
 getLagTimes ($serverIndexes, $wiki)
 postConnectionBackoff ($conn, $threshold)
 Perform post-connection backoff.
 scaleLoads (&$loads, $group=false, $wiki=false)
 Perform pre-connection load ratio adjustment.

Detailed Description

Definition at line 59 of file LoadMonitor.php.


Constructor & Destructor Documentation

Construct a new LoadMonitor with a given LoadBalancer parent.

Parameters:
LoadBalancer$parent

Implements LoadMonitor.

Definition at line 60 of file LoadMonitor.php.


Member Function Documentation

LoadMonitor_Null::getLagTimes ( serverIndexes,
wiki 
)
Parameters:
$serverIndexes
$wiki
Returns:
array

Implements LoadMonitor.

Definition at line 74 of file LoadMonitor.php.

LoadMonitor_Null::postConnectionBackoff ( conn,
threshold 
)

Perform post-connection backoff.

If the connection is in overload, this should return a backoff factor which will be used to control polling time. The number of threads connected is a good measure.

If there is no overload, zero can be returned.

A threshold thread count is given, the concrete class may compare this to the running thread count. The threshold may be false, which indicates that the sysadmin has not configured this feature.

Parameters:
$connDatabaseBase
$thresholdFloat

Implements LoadMonitor.

Definition at line 66 of file LoadMonitor.php.

LoadMonitor_Null::scaleLoads ( &$  loads,
group = false,
wiki = false 
)

Perform pre-connection load ratio adjustment.

Parameters:
$loadsarray
$groupString: the selected query group
$wikiString

Implements LoadMonitor.

Definition at line 63 of file LoadMonitor.php.


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