2008-07-07 03:31:00 +00:00
|
|
|
<?php
|
2010-08-08 11:55:47 +00:00
|
|
|
/**
|
2012-04-26 08:47:10 +00:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
2010-08-08 11:55:47 +00:00
|
|
|
*
|
|
|
|
|
* @file
|
|
|
|
|
* @ingroup Database
|
|
|
|
|
*/
|
2017-01-26 17:59:18 +00:00
|
|
|
|
|
|
|
|
namespace Wikimedia\Rdbms;
|
|
|
|
|
|
2016-09-12 22:10:16 +00:00
|
|
|
use Psr\Log\LoggerInterface;
|
2017-01-26 17:59:18 +00:00
|
|
|
use BagOStuff;
|
2017-08-17 05:14:48 +00:00
|
|
|
use WANObjectCache;
|
2008-07-07 03:31:00 +00:00
|
|
|
|
2016-09-15 05:38:47 +00:00
|
|
|
class LoadMonitorNull implements ILoadMonitor {
|
2016-09-15 07:04:41 +00:00
|
|
|
public function __construct(
|
2017-08-17 05:14:48 +00:00
|
|
|
ILoadBalancer $lb, BagOStuff $sCache, WANObjectCache $wCache, array $options = []
|
2016-09-15 07:04:41 +00:00
|
|
|
) {
|
2016-09-12 22:10:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function setLogger( LoggerInterface $logger ) {
|
2011-06-23 03:14:11 +00:00
|
|
|
}
|
|
|
|
|
|
2016-10-05 19:47:10 +00:00
|
|
|
public function scaleLoads( array &$loads, $domain ) {
|
2011-06-23 03:14:11 +00:00
|
|
|
}
|
|
|
|
|
|
2016-09-15 07:04:41 +00:00
|
|
|
public function getLagTimes( array $serverIndexes, $domain ) {
|
2011-06-23 03:14:11 +00:00
|
|
|
return array_fill_keys( $serverIndexes, 0 );
|
|
|
|
|
}
|
2015-09-29 08:22:02 +00:00
|
|
|
|
|
|
|
|
public function clearCaches() {
|
|
|
|
|
}
|
2011-06-23 03:14:11 +00:00
|
|
|
}
|