From 710cb4e99b5cc5c3c0d531a169293c9630b64df9 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Thu, 26 Jun 2008 13:01:59 +0000 Subject: [PATCH] Memcache: Added getRawStats function. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@717 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Memcache.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lib/SimpleSAML/Memcache.php b/lib/SimpleSAML/Memcache.php index d997498b8..0a0aca682 100644 --- a/lib/SimpleSAML/Memcache.php +++ b/lib/SimpleSAML/Memcache.php @@ -408,5 +408,23 @@ class SimpleSAML_Memcache { return $ret; } + + /** + * Retrieve statistics directly in the form returned by getExtendedStats, for + * all server groups. + * + * @return Array with the extended stats output for each server group. + */ + public static function getRawStats() { + $ret = array(); + + foreach(self::getMemcacheServers() as $sg) { + $stats = $sg->getExtendedStats(); + $ret[] = $stats; + } + + return $ret; + } + } ?> \ No newline at end of file -- GitLab