MediaWiki
master
|
Generic interface providing error code and quality-of-service constants for object stores. More...
Public Attributes | |
const | ATTR_DURABILITY = 2 |
Durability of writes; see QOS_DURABILITY_* (higher means stronger) More... | |
const | ATTR_EMULATION = 1 |
const | ERR_NO_RESPONSE = 1 |
Storage medium failed to yield a complete response to an operation. More... | |
const | ERR_NONE = 0 |
No storage medium error. More... | |
const | ERR_UNEXPECTED = 3 |
Storage medium operation failed due to usage limitations or an I/O error. More... | |
const | ERR_UNREACHABLE = 2 |
Storage medium could not be reached to establish a connection. More... | |
const | QOS_DURABILITY_DISK = 4 |
Data is saved to disk and writes do not usually block on fsync() More... | |
const | QOS_DURABILITY_NONE = 1 |
Data is never saved to begin with (blackhole store) More... | |
const | QOS_DURABILITY_RDBMS = 5 |
Data is saved to disk and writes usually block on fsync(), like a standard RDBMS. More... | |
const | QOS_DURABILITY_SCRIPT = 2 |
Data is lost at the end of the current web request or CLI script. More... | |
const | QOS_DURABILITY_SERVICE = 3 |
Data is lost once the service storing the data restarts. More... | |
const | QOS_EMULATION_SQL = 1 |
const | QOS_UNKNOWN = INF |
Generic "unknown" value; useful for comparisons (always "good enough") More... | |
Generic interface providing error code and quality-of-service constants for object stores.
Definition at line 32 of file StorageAwareness.php.
const Wikimedia\LightweightObjectStore\StorageAwareness::ATTR_DURABILITY = 2 |
Durability of writes; see QOS_DURABILITY_* (higher means stronger)
Definition at line 45 of file StorageAwareness.php.
Referenced by RedisBagOStuff\__construct(), RESTBagOStuff\__construct(), SqlBagOStuff\__construct(), HashBagOStuff\__construct(), MemcachedBagOStuff\__construct(), APCUBagOStuff\__construct(), EmptyBagOStuff\__construct(), and WinCacheBagOStuff\__construct().
const Wikimedia\LightweightObjectStore\StorageAwareness::ATTR_EMULATION = 1 |
Definition at line 43 of file StorageAwareness.php.
Referenced by SqlBagOStuff\__construct().
const Wikimedia\LightweightObjectStore\StorageAwareness::ERR_NO_RESPONSE = 1 |
Storage medium failed to yield a complete response to an operation.
Definition at line 36 of file StorageAwareness.php.
Referenced by MemcachedClient\_incrdecr(), MemcachedClient\_set(), MemcachedPeclBagOStuff\checkResult(), MemcachedClient\get(), MemcachedClient\get_multi(), and WANObjectCache\getLastError().
const Wikimedia\LightweightObjectStore\StorageAwareness::ERR_NONE = 0 |
No storage medium error.
Definition at line 34 of file StorageAwareness.php.
Referenced by MemcachedClient\_incrdecr(), MemcachedClient\_set(), MemcachedClient\add(), MemcachedClient\decr(), MemcachedClient\delete(), MemcachedClient\get(), MemcachedClient\get_multi(), WANObjectCache\getLastError(), and MemcachedClient\touch().
const Wikimedia\LightweightObjectStore\StorageAwareness::ERR_UNEXPECTED = 3 |
Storage medium operation failed due to usage limitations or an I/O error.
Definition at line 40 of file StorageAwareness.php.
Referenced by MemcachedClient\_incrdecr(), MemcachedClient\_set(), MemcachedClient\delete(), MemcachedClient\get(), MemcachedClient\get_multi(), WANObjectCache\getLastError(), and RedisBagOStuff\handleException().
const Wikimedia\LightweightObjectStore\StorageAwareness::ERR_UNREACHABLE = 2 |
Storage medium could not be reached to establish a connection.
Definition at line 38 of file StorageAwareness.php.
Referenced by MemcachedClient\_incrdecr(), MemcachedClient\_set(), MemcachedPeclBagOStuff\checkResult(), MemcachedClient\get(), MemcachedClient\get_multi(), RedisBagOStuff\getConnectionsForKeys(), and WANObjectCache\getLastError().
const Wikimedia\LightweightObjectStore\StorageAwareness::QOS_DURABILITY_DISK = 4 |
Data is saved to disk and writes do not usually block on fsync()
Definition at line 57 of file StorageAwareness.php.
Referenced by RedisBagOStuff\__construct(), and RESTBagOStuff\__construct().
const Wikimedia\LightweightObjectStore\StorageAwareness::QOS_DURABILITY_NONE = 1 |
Data is never saved to begin with (blackhole store)
Definition at line 51 of file StorageAwareness.php.
Referenced by APCUBagOStuff\__construct(), EmptyBagOStuff\__construct(), and WinCacheBagOStuff\__construct().
const Wikimedia\LightweightObjectStore\StorageAwareness::QOS_DURABILITY_RDBMS = 5 |
Data is saved to disk and writes usually block on fsync(), like a standard RDBMS.
Definition at line 59 of file StorageAwareness.php.
Referenced by SqlBagOStuff\__construct().
const Wikimedia\LightweightObjectStore\StorageAwareness::QOS_DURABILITY_SCRIPT = 2 |
Data is lost at the end of the current web request or CLI script.
Definition at line 53 of file StorageAwareness.php.
Referenced by HashBagOStuff\__construct(), APCUBagOStuff\__construct(), and WinCacheBagOStuff\__construct().
const Wikimedia\LightweightObjectStore\StorageAwareness::QOS_DURABILITY_SERVICE = 3 |
Data is lost once the service storing the data restarts.
Definition at line 55 of file StorageAwareness.php.
Referenced by MemcachedBagOStuff\__construct(), APCUBagOStuff\__construct(), and WinCacheBagOStuff\__construct().
const Wikimedia\LightweightObjectStore\StorageAwareness::QOS_EMULATION_SQL = 1 |
Definition at line 48 of file StorageAwareness.php.
Referenced by SqlBagOStuff\__construct().
const Wikimedia\LightweightObjectStore\StorageAwareness::QOS_UNKNOWN = INF |
Generic "unknown" value; useful for comparisons (always "good enough")
Definition at line 62 of file StorageAwareness.php.