MediaWiki
master
StorageAwareness.php
Go to the documentation of this file.
1
<?php
21
namespace
Wikimedia\LightweightObjectStore
;
22
29
interface
StorageAwareness
{
31
public
const
ERR_NONE
= 0;
33
public
const
ERR_NO_RESPONSE
= 1;
35
public
const
ERR_UNREACHABLE
= 2;
37
public
const
ERR_UNEXPECTED
= 3;
38
40
public
const
ATTR_EMULATION
= 1;
42
public
const
ATTR_DURABILITY
= 2;
43
45
public
const
QOS_DURABILITY_NONE
= 1;
47
public
const
QOS_DURABILITY_SCRIPT
= 2;
49
public
const
QOS_DURABILITY_SERVICE
= 3;
51
public
const
QOS_DURABILITY_DISK
= 4;
53
public
const
QOS_DURABILITY_RDBMS
= 5;
54
56
public
const
QOS_UNKNOWN
= INF;
57
}
Wikimedia\LightweightObjectStore\StorageAwareness
Generic interface providing error code and quality-of-service constants for object stores.
Definition
StorageAwareness.php:29
Wikimedia\LightweightObjectStore\StorageAwareness\QOS_DURABILITY_SERVICE
const QOS_DURABILITY_SERVICE
Data is lost once the service storing the data restarts.
Definition
StorageAwareness.php:49
Wikimedia\LightweightObjectStore\StorageAwareness\QOS_DURABILITY_SCRIPT
const QOS_DURABILITY_SCRIPT
Data is lost at the end of the current web request or CLI script.
Definition
StorageAwareness.php:47
Wikimedia\LightweightObjectStore\StorageAwareness\QOS_DURABILITY_NONE
const QOS_DURABILITY_NONE
Data is never saved to begin with (blackhole store)
Definition
StorageAwareness.php:45
Wikimedia\LightweightObjectStore\StorageAwareness\ERR_UNREACHABLE
const ERR_UNREACHABLE
Storage medium could not be reached to establish a connection.
Definition
StorageAwareness.php:35
Wikimedia\LightweightObjectStore\StorageAwareness\ATTR_EMULATION
const ATTR_EMULATION
Definition
StorageAwareness.php:40
Wikimedia\LightweightObjectStore\StorageAwareness\QOS_DURABILITY_RDBMS
const QOS_DURABILITY_RDBMS
Data is saved to disk and writes usually block on fsync(), like a standard RDBMS.
Definition
StorageAwareness.php:53
Wikimedia\LightweightObjectStore\StorageAwareness\ATTR_DURABILITY
const ATTR_DURABILITY
Durability of writes; see QOS_DURABILITY_* (higher means stronger)
Definition
StorageAwareness.php:42
Wikimedia\LightweightObjectStore\StorageAwareness\ERR_UNEXPECTED
const ERR_UNEXPECTED
Storage medium operation failed due to usage limitations or an I/O error.
Definition
StorageAwareness.php:37
Wikimedia\LightweightObjectStore\StorageAwareness\ERR_NONE
const ERR_NONE
No storage medium error.
Definition
StorageAwareness.php:31
Wikimedia\LightweightObjectStore\StorageAwareness\ERR_NO_RESPONSE
const ERR_NO_RESPONSE
Storage medium failed to yield a complete response to an operation.
Definition
StorageAwareness.php:33
Wikimedia\LightweightObjectStore\StorageAwareness\QOS_UNKNOWN
const QOS_UNKNOWN
Generic "unknown" value; useful for comparisons (always "good enough")
Definition
StorageAwareness.php:56
Wikimedia\LightweightObjectStore\StorageAwareness\QOS_DURABILITY_DISK
const QOS_DURABILITY_DISK
Data is saved to disk and writes do not usually block on fsync()
Definition
StorageAwareness.php:51
Wikimedia\LightweightObjectStore
Definition
ExpirationAwareness.php:21
includes
libs
objectcache
utils
StorageAwareness.php
Generated on Sat Dec 14 2024 01:24:57 for MediaWiki by
1.10.0