MediaWiki master
StorageAwareness.php
Go to the documentation of this file.
1<?php
22
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}
Generic interface providing error code and quality-of-service constants for object stores.
const QOS_DURABILITY_SERVICE
Data is lost once the service storing the data restarts.
const QOS_DURABILITY_SCRIPT
Data is lost at the end of the current web request or CLI script.
const QOS_DURABILITY_NONE
Data is never saved to begin with (blackhole store)
const ERR_UNREACHABLE
Storage medium could not be reached to establish a connection.
const QOS_DURABILITY_RDBMS
Data is saved to disk and writes usually block on fsync(), like a standard RDBMS.
const ATTR_DURABILITY
Durability of writes; see QOS_DURABILITY_* (higher means stronger)
const ERR_UNEXPECTED
Storage medium operation failed due to usage limitations or an I/O error.
const ERR_NO_RESPONSE
Storage medium failed to yield a complete response to an operation.
const QOS_UNKNOWN
Generic "unknown" value; useful for comparisons (always "good enough")
const QOS_DURABILITY_DISK
Data is saved to disk and writes do not usually block on fsync()