MediaWiki REL1_40
LoadMonitorNull.php
Go to the documentation of this file.
1<?php
21namespace Wikimedia\Rdbms;
22
23use BagOStuff;
24use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
25use Psr\Log\LoggerInterface;
27
31class LoadMonitorNull implements ILoadMonitor {
32 public function __construct(
33 ILoadBalancer $lb, BagOStuff $sCache, WANObjectCache $wCache, array $options = []
34 ) {
35 }
36
37 public function setLogger( LoggerInterface $logger ) {
38 }
39
40 public function setStatsdDataFactory( StatsdDataFactoryInterface $statsFactory ) {
41 }
42
43 public function scaleLoads( array &$loads ) {
44 }
45
46 public function getLagTimes( array $serverIndexes ) {
47 return array_fill_keys( $serverIndexes, 0 );
48 }
49
50 public function clearCaches() {
51 }
52}
Class representing a cache/ephemeral data store.
Definition BagOStuff.php:85
Multi-datacenter aware caching interface.
__construct(ILoadBalancer $lb, BagOStuff $sCache, WANObjectCache $wCache, array $options=[])
Construct a new LoadMonitor with a given LoadBalancer parent.
scaleLoads(array &$loads)
Perform load ratio adjustment before deciding which server to use.
getLagTimes(array $serverIndexes)
Get an estimate of replication lag (in seconds) for each server.
setStatsdDataFactory(StatsdDataFactoryInterface $statsFactory)
Sets a StatsdDataFactory instance on the object.
setLogger(LoggerInterface $logger)
This class is a delegate to ILBFactory for a given database cluster.
Database load monitoring interface.