MediaWiki
1.30.0
|
Interface for configuration instances. More...
Public Member Functions | |
__construct (array $params) | |
fetchAllFromEtcd () | |
get ( $name) | |
has ( $name) | |
setLogger (LoggerInterface $logger) | |
Protected Member Functions | |
fetchAllFromEtcdServer ( $address) | |
parseDirectory ( $dirName, $dirNode, &$config) | |
Recursively parse a directory node and populate the array passed by reference, throwing EtcdConfigParseError if there is a validation error. More... | |
parseResponse ( $rbody) | |
Parse a response body, throwing EtcdConfigParseError if there is a validation error. More... | |
Private Member Functions | |
load () | |
unserialize ( $string) | |
Private Attributes | |
int | $baseCacheTTL |
string | $directory |
string | $encoding |
string | $host |
MultiHttpClient | $http |
LoggerInterface | $logger |
array | $procCache |
string | $protocol |
int | $skewCacheTTL |
BagOStuff | $srvCache |
int | $timeout |
EtcdConfig::__construct | ( | array | $params | ) |
array | $params | Parameter map:
|
Definition at line 67 of file EtcdConfig.php.
References $params, directory, ObjectFactory\getObjectFromSpec(), and http.
EtcdConfig::fetchAllFromEtcd | ( | ) |
Definition at line 199 of file EtcdConfig.php.
References $host, IP\combineHostAndPort(), fetchAllFromEtcdServer(), and list.
Referenced by load().
|
protected |
string | $address | Host and port |
Definition at line 227 of file EtcdConfig.php.
References $e, false, http, list, parseResponse(), and true.
Referenced by fetchAllFromEtcd().
EtcdConfig::get | ( | $name | ) |
Definition at line 111 of file EtcdConfig.php.
EtcdConfig::has | ( | $name | ) |
Definition at line 105 of file EtcdConfig.php.
|
private |
ConfigException |
Definition at line 124 of file EtcdConfig.php.
References $baseCacheTTL, $skewCacheTTL, $timeout, directory, fetchAllFromEtcd(), list, IExpiringStore\TTL_INDEFINITE, and use.
|
protected |
Recursively parse a directory node and populate the array passed by reference, throwing EtcdConfigParseError if there is a validation error.
string | $dirName | The relative directory name |
array | $dirNode | The decoded directory node |
array | &$config | The output array |
Definition at line 278 of file EtcdConfig.php.
References $value, as, and unserialize().
Referenced by parseResponse().
|
protected |
Parse a response body, throwing EtcdConfigParseError if there is a validation error.
string | $rbody |
Definition at line 256 of file EtcdConfig.php.
References parseDirectory().
Referenced by fetchAllFromEtcdServer().
EtcdConfig::setLogger | ( | LoggerInterface | $logger | ) |
Definition at line 100 of file EtcdConfig.php.
|
private |
string | $string |
Definition at line 308 of file EtcdConfig.php.
Referenced by parseDirectory().
|
private |
Definition at line 49 of file EtcdConfig.php.
Referenced by load().
|
private |
Definition at line 45 of file EtcdConfig.php.
|
private |
Definition at line 47 of file EtcdConfig.php.
|
private |
Definition at line 41 of file EtcdConfig.php.
Referenced by fetchAllFromEtcd().
|
private |
Definition at line 32 of file EtcdConfig.php.
|
private |
Definition at line 38 of file EtcdConfig.php.
Referenced by setLogger().
|
private |
Definition at line 36 of file EtcdConfig.php.
|
private |
Definition at line 43 of file EtcdConfig.php.
|
private |
Definition at line 51 of file EtcdConfig.php.
Referenced by load().
|
private |
Definition at line 34 of file EtcdConfig.php.
|
private |
Definition at line 53 of file EtcdConfig.php.
Referenced by load().