MediaWiki REL1_35
|
Key/value blob storage for a collection of storage medium types (e.g. More...
Public Member Functions | |
__construct (ExternalStoreFactory $factory, LoggerInterface $logger=null) | |
fetchFromURL ( $url, array $params=[]) | |
Fetch data from given URL. | |
fetchFromURLs (array $urls, array $params=[]) | |
Fetch data from multiple URLs with a minimum of round trips. | |
insert ( $data, array $params=[], array $tryStores=null) | |
Insert data into storage and return the assigned URL. | |
isReadOnly ( $storeUrls=null) | |
setLogger (LoggerInterface $logger) | |
Private Attributes | |
LoggerInterface | $logger |
ExternalStoreFactory | $storeFactory |
Key/value blob storage for a collection of storage medium types (e.g.
RDBMs, files)
Multiple medium types can be active and each one can have multiple "locations" available. Blobs are stored under URLs of the form "<protocol>://<location>/<path>". Each type of storage medium has an associated protocol. Insertions will randomly pick mediums and locations from the provided list of writable medium-qualified locations. Insertions will also fail-over to other writable locations or mediums if one or more are not available.
Definition at line 22 of file ExternalStoreAccess.php.
ExternalStoreAccess::__construct | ( | ExternalStoreFactory | $factory, |
LoggerInterface | $logger = null |
||
) |
ExternalStoreFactory | $factory | |
LoggerInterface | null | $logger |
Definition at line 32 of file ExternalStoreAccess.php.
ExternalStoreAccess::fetchFromURL | ( | $url, | |
array | $params = [] |
||
) |
Fetch data from given URL.
string | $url | The URL of the text to get |
array | $params | Map of context parameters; same as ExternalStoreFactory::getStore() |
ExternalStoreException |
Definition at line 51 of file ExternalStoreAccess.php.
ExternalStoreAccess::fetchFromURLs | ( | array | $urls, |
array | $params = [] |
||
) |
Fetch data from multiple URLs with a minimum of round trips.
array | $urls | The URLs of the text to get |
array | $params | Map of context parameters; same as ExternalStoreFactory::getStore() |
ExternalStoreException |
Definition at line 65 of file ExternalStoreAccess.php.
ExternalStoreAccess::insert | ( | $data, | |
array | $params = [] , |
||
array | $tryStores = null |
||
) |
Insert data into storage and return the assigned URL.
This will randomly pick one of the available write storage locations to put the data. It will keep failing-over to any untried storage locations whenever one location is not usable.
string | $data | |
array | $params | Map of context parameters; same as ExternalStoreFactory::getStore() |
string[] | null | $tryStores | Base URLs to try, e.g. [ "DB://cluster1" ] |
ExternalStoreException |
Definition at line 96 of file ExternalStoreAccess.php.
ExternalStoreAccess::isReadOnly | ( | $storeUrls = null | ) |
string[] | string | null | $storeUrls | Base URL(s) to check, e.g. [ "DB://cluster1" ] |
ExternalStoreException |
Definition at line 163 of file ExternalStoreAccess.php.
ExternalStoreAccess::setLogger | ( | LoggerInterface | $logger | ) |
Definition at line 37 of file ExternalStoreAccess.php.
|
private |
Definition at line 26 of file ExternalStoreAccess.php.
|
private |
Definition at line 24 of file ExternalStoreAccess.php.