MediaWiki REL1_39
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, $domain ) {
44 }
45
46 public function getLagTimes( array $serverIndexes, $domain ) {
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, $domain)
Perform load ratio adjustment before deciding which server to use.
setStatsdDataFactory(StatsdDataFactoryInterface $statsFactory)
Sets a StatsdDataFactory instance on the object.
getLagTimes(array $serverIndexes, $domain)
Get an estimate of replication lag (in seconds) for each server.
setLogger(LoggerInterface $logger)
Create and track the database connections and transactions for a given database cluster.
Database load monitoring interface.