MediaWiki
REL1_39
StorageAwareness.php
Go to the documentation of this file.
1
<?php
24
namespace
Wikimedia\LightweightObjectStore
;
25
32
interface
StorageAwareness
{
34
public
const
ERR_NONE
= 0;
36
public
const
ERR_NO_RESPONSE
= 1;
38
public
const
ERR_UNREACHABLE
= 2;
40
public
const
ERR_UNEXPECTED
= 3;
41
43
public
const
ATTR_EMULATION
= 1;
45
public
const
ATTR_DURABILITY
= 2;
46
48
public
const
QOS_EMULATION_SQL
= 1;
49
51
public
const
QOS_DURABILITY_NONE
= 1;
53
public
const
QOS_DURABILITY_SCRIPT
= 2;
55
public
const
QOS_DURABILITY_SERVICE
= 3;
57
public
const
QOS_DURABILITY_DISK
= 4;
59
public
const
QOS_DURABILITY_RDBMS
= 5;
60
62
public
const
QOS_UNKNOWN
= INF;
63
}
Wikimedia\LightweightObjectStore\StorageAwareness
Generic interface providing error code and quality-of-service constants for object stores.
Definition
StorageAwareness.php:32
Wikimedia\LightweightObjectStore\StorageAwareness\QOS_DURABILITY_SERVICE
const QOS_DURABILITY_SERVICE
Data is lost once the service storing the data restarts.
Definition
StorageAwareness.php:55
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:53
Wikimedia\LightweightObjectStore\StorageAwareness\QOS_DURABILITY_NONE
const QOS_DURABILITY_NONE
Data is never saved to begin with (blackhole store)
Definition
StorageAwareness.php:51
Wikimedia\LightweightObjectStore\StorageAwareness\ERR_UNREACHABLE
const ERR_UNREACHABLE
Storage medium could not be reached to establish a connection.
Definition
StorageAwareness.php:38
Wikimedia\LightweightObjectStore\StorageAwareness\ATTR_EMULATION
const ATTR_EMULATION
Emulation/fallback mode; see QOS_EMULATION_*; higher is better.
Definition
StorageAwareness.php:43
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:59
Wikimedia\LightweightObjectStore\StorageAwareness\ATTR_DURABILITY
const ATTR_DURABILITY
Durability of writes; see QOS_DURABILITY_* (higher means stronger)
Definition
StorageAwareness.php:45
Wikimedia\LightweightObjectStore\StorageAwareness\QOS_EMULATION_SQL
const QOS_EMULATION_SQL
Fallback disk-based SQL store.
Definition
StorageAwareness.php:48
Wikimedia\LightweightObjectStore\StorageAwareness\ERR_UNEXPECTED
const ERR_UNEXPECTED
Storage medium operation failed due to usage limitations or an I/O error.
Definition
StorageAwareness.php:40
Wikimedia\LightweightObjectStore\StorageAwareness\ERR_NONE
const ERR_NONE
No storage medium error.
Definition
StorageAwareness.php:34
Wikimedia\LightweightObjectStore\StorageAwareness\ERR_NO_RESPONSE
const ERR_NO_RESPONSE
Storage medium failed to yield a complete response to an operation.
Definition
StorageAwareness.php:36
Wikimedia\LightweightObjectStore\StorageAwareness\QOS_UNKNOWN
const QOS_UNKNOWN
Generic "unknown" value; useful for comparisons (always "good enough")
Definition
StorageAwareness.php:62
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:57
Wikimedia\LightweightObjectStore
Definition
ExpirationAwareness.php:24
includes
libs
objectcache
utils
StorageAwareness.php
Generated on Sun Nov 24 2024 04:23:25 for MediaWiki by
1.10.0