MediaWiki master
Wikimedia\Rdbms\LoadMonitorNull Class Reference

Inherits Wikimedia\Rdbms\LoadMonitor.

Collaboration diagram for Wikimedia\Rdbms\LoadMonitorNull:

Public Member Functions

 getServerStates (array $serverIndexes)
 Get a server gauge map for the specified servers.
- Public Member Functions inherited from Wikimedia\Rdbms\LoadMonitor
 __construct (ILoadBalancer $lb, BagOStuff $srvCache, WANObjectCache $wCache, array $options=[])
 getLagTimes (array $serverIndexes)
 Get an estimate of replication lag (in seconds) for the specified servers.
 movingAverage ( $priorValue, $gaugeValue, float $delay, float $movAveRatio)
 Update a moving average for a gauge, accounting for the time delay since the last gauge.
 scaleLoads (array &$weightByServer)
 Perform load ratio adjustment before deciding which server to use.
 setLogger (LoggerInterface $logger)
 setMockTime (&$time)
 setStatsdDataFactory (StatsdDataFactoryInterface $statsFactory)
 Sets a StatsdDataFactory instance on the object.

Additional Inherited Members

- Public Attributes inherited from Wikimedia\Rdbms\ILoadMonitor
const STATE_AS_OF = 'time'
const STATE_GEN_DELAY = 'delay'
const STATE_LAG = 'lag'
const STATE_UP = 'up'
- Protected Member Functions inherited from Wikimedia\Rdbms\LoadMonitor
 computeServerState (int $i, ?array $priorState)
 getCurrentTime ()
 getWeightScale (array $state)
 isStateFresh ( $state, $now)
 isStateRefreshDue ( $priorAsOf, $priorGenDelay, $referenceTTL, $now)
 makeStateKey (IStoreKeyEncoder $cache, int $i)
 newInitialServerState ()
- Protected Attributes inherited from Wikimedia\Rdbms\LoadMonitor
ILoadBalancer $lb
LoggerInterface $logger
BagOStuff $srvCache
StatsdDataFactoryInterface $statsd
WANObjectCache $wanCache

Detailed Description

Definition at line 26 of file LoadMonitorNull.php.

Member Function Documentation

◆ getServerStates()

Wikimedia\Rdbms\LoadMonitorNull::getServerStates ( array  $serverIndexes)

Get a server gauge map for the specified servers.


Reimplemented from Wikimedia\Rdbms\LoadMonitor.

Definition at line 27 of file LoadMonitorNull.php.

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