Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (BlobStore $blobStore, $statsdId) | |
shouldRecord ( $shouldRecord) | |
getStats () | |
incr ( $key) | |
init ( $key, $default) | |
set ( $key, $value) | |
calcMedian ( $key, $value) | |
saveStats () | |
recordStats ( $asPending=false) | |
Public Attributes | |
const | VERSION = '0.2' |
const | STATS_INIT = 'init' |
const | STATS_INCR = 'incr' |
const | STATS_SET = 'set' |
const | STATS_MEDIAN = 'median' |
const | CACHE_NAMESPACE = 'smw:stats:store' |
Collect statistics in a provisional schema-free storage that depends on the availability of the cache back-end.
GNU GPL v2+
SMW\Utils\BufferedStatsdCollector::__construct | ( | BlobStore | $blobStore, |
$statsdId | |||
) |
BlobStore | $blobStore | |
string | $statsdId |
SMW\Utils\BufferedStatsdCollector::calcMedian | ( | $key, | |
$value | |||
) |
string | array | $key | |
integer | $value |
SMW\Utils\BufferedStatsdCollector::getStats | ( | ) |
SMW\Utils\BufferedStatsdCollector::incr | ( | $key | ) |
string | array | $key |
SMW\Utils\BufferedStatsdCollector::init | ( | $key, | |
$default | |||
) |
string | array | $key | |
string | integer | $default |
SMW\Utils\BufferedStatsdCollector::recordStats | ( | $asPending = false | ) |
boolean | $asPending |
SMW\Utils\BufferedStatsdCollector::saveStats | ( | ) |
SMW\Utils\BufferedStatsdCollector::set | ( | $key, | |
$value | |||
) |
string | array | $key | |
string | integer | $value |
SMW\Utils\BufferedStatsdCollector::shouldRecord | ( | $shouldRecord | ) |
boolean | $shouldRecord |
const SMW\Utils\BufferedStatsdCollector::CACHE_NAMESPACE = 'smw:stats:store' |
Namespace occupied by the BlobStore
const SMW\Utils\BufferedStatsdCollector::STATS_INIT = 'init' |
Available operations
const SMW\Utils\BufferedStatsdCollector::VERSION = '0.2' |
Update this version number when the serialization format changes.