<?php
+/**
+ * Database load monitoring
+ *
+ * @file
+ * @ingroup Database
+ */
/**
* An interface for database load monitoring
+ *
+ * @ingroup Database
*/
-
interface LoadMonitor {
/**
* Construct a new LoadMonitor with a given LoadBalancer parent
/**
* Perform pre-connection load ratio adjustment.
- * @param array $loads
- * @param string $group The selected query group
- * @param string $wiki
+ * @param $loads Array
+ * @param $group String: the selected query group
+ * @param $wiki String
*/
function scaleLoads( &$loads, $group = false, $wiki = false );
* to the running thread count. The threshold may be false, which indicates
* that the sysadmin has not configured this feature.
*
- * @param Database $conn
- * @param float $threshold
+ * @param $conn DatabaseBase
+ * @param $threshold Float
*/
function postConnectionBackoff( $conn, $threshold );
/**
* Basic MySQL load monitor with no external dependencies
* Uses memcached to cache the replication lag for a short time
+ *
+ * @ingroup Database
*/
-
class LoadMonitor_MySQL implements LoadMonitor {
var $parent; // LoadBalancer