MediaWiki master
|
Container for accessing information about the database servers in a database cluster. More...
Public Member Functions | |
addServer ( $i, $server) | |
getLagTimes () | |
getPrimaryServerName () | |
getServerCount () | |
getServerDriver ( $i) | |
getServerInfo ( $i) | |
getServerInfoStrict ( $i, $field=null) | |
getServerMaxLag ( $i) | |
getServerName ( $i) | |
getServerType ( $i) | |
getStreamingReplicaIndexes () | |
hasReplicaServers () | |
hasServerIndex ( $i) | |
hasStreamingReplicaServers () | |
normalizeServerMaps (array $servers, array &$indexBySrvName=null) | |
reconfigureServers ( $paramServers) | |
Public Attributes | |
const | MAX_LAG_DEFAULT = 6 |
Default 'maxLag' when unspecified. | |
const | WRITER_INDEX = 0 |
Container for accessing information about the database servers in a database cluster.
Definition at line 14 of file ServerInfo.php.
Wikimedia\Rdbms\ServerInfo::addServer | ( | $i, | |
$server ) |
Definition at line 26 of file ServerInfo.php.
Wikimedia\Rdbms\ServerInfo::getLagTimes | ( | ) |
Definition at line 58 of file ServerInfo.php.
Wikimedia\Rdbms\ServerInfo::getPrimaryServerName | ( | ) |
Definition at line 166 of file ServerInfo.php.
Wikimedia\Rdbms\ServerInfo::getServerCount | ( | ) |
Definition at line 50 of file ServerInfo.php.
Wikimedia\Rdbms\ServerInfo::getServerDriver | ( | $i | ) |
Definition at line 34 of file ServerInfo.php.
Wikimedia\Rdbms\ServerInfo::getServerInfo | ( | $i | ) |
Definition at line 46 of file ServerInfo.php.
Wikimedia\Rdbms\ServerInfo::getServerInfoStrict | ( | $i, | |
$field = null ) |
int | $i | Server index |
string | null | $field | Server index field [optional] |
InvalidArgumentException |
Definition at line 78 of file ServerInfo.php.
Wikimedia\Rdbms\ServerInfo::getServerMaxLag | ( | $i | ) |
Definition at line 30 of file ServerInfo.php.
References Wikimedia\Rdbms\ServerInfo\MAX_LAG_DEFAULT.
Wikimedia\Rdbms\ServerInfo::getServerName | ( | $i | ) |
Definition at line 42 of file ServerInfo.php.
Wikimedia\Rdbms\ServerInfo::getServerType | ( | $i | ) |
Definition at line 38 of file ServerInfo.php.
Wikimedia\Rdbms\ServerInfo::getStreamingReplicaIndexes | ( | ) |
Definition at line 97 of file ServerInfo.php.
Wikimedia\Rdbms\ServerInfo::hasReplicaServers | ( | ) |
Definition at line 170 of file ServerInfo.php.
Wikimedia\Rdbms\ServerInfo::hasServerIndex | ( | $i | ) |
Definition at line 54 of file ServerInfo.php.
Wikimedia\Rdbms\ServerInfo::hasStreamingReplicaServers | ( | ) |
Definition at line 108 of file ServerInfo.php.
Wikimedia\Rdbms\ServerInfo::normalizeServerMaps | ( | array | $servers, |
array & | $indexBySrvName = null ) |
Definition at line 139 of file ServerInfo.php.
Wikimedia\Rdbms\ServerInfo::reconfigureServers | ( | $paramServers | ) |
Definition at line 112 of file ServerInfo.php.
const Wikimedia\Rdbms\ServerInfo::MAX_LAG_DEFAULT = 6 |
Default 'maxLag' when unspecified.
Definition at line 19 of file ServerInfo.php.
Referenced by Wikimedia\Rdbms\ServerInfo\getServerMaxLag().
const Wikimedia\Rdbms\ServerInfo::WRITER_INDEX = 0 |
Definition at line 21 of file ServerInfo.php.
Referenced by Wikimedia\Rdbms\ChronologyProtector\getSessionPrimaryPos(), Wikimedia\Rdbms\LoadMonitor\makeStateKey(), and Wikimedia\Rdbms\ChronologyProtector\stageSessionPrimaryPos().