svn: /phpdoc/es/trunk/reference/memcache/functions/ memcache-getextendedstats.xml

From: Date: Sat, 06 Feb 2010 23:56:19 +0000
Subject: svn: /phpdoc/es/trunk/reference/memcache/functions/ memcache-getextendedstats.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-1968@lists.php.net to get a copy of this message
yago Sat, 06 Feb 2010 23:56:19 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=294693 Log: Translated file. Changed paths: A phpdoc/es/trunk/reference/memcache/functions/memcache-getextendedstats.xml Added: phpdoc/es/trunk/reference/memcache/functions/memcache-getextendedstats.xml =================================================================== --- phpdoc/es/trunk/reference/memcache/functions/memcache-getextendedstats.xml (rev 0) +++ phpdoc/es/trunk/reference/memcache/functions/memcache-getextendedstats.xml 2010-02-06 23:56:19 UTC (rev 294693) @@ -0,0 +1,168 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 291314 $ --> +<!-- EN-Revision: 291314 Maintainer: yago Status: ready --> +<refentry xml:id="function.memcache-getextendedstats" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>Memcache::getExtendedStats</refname> + <refpurpose>Devuelve estadísticas del servidor(es) del grupo</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>Memcache::getExtendedStats</methodname> + <methodparam choice="opt"><type>string</type><parameter>type</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>slabid</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>limit</parameter><initializer>100</initializer></methodparam> + </methodsynopsis> + + <para> + <function>Memcache::getExtendedStats</function> devuelve un array asociativo + de dos dimensiones con estadísticas del servidor(es). Las llaves del array + corresponden al servidor:puerto y los valores contienen las estadísticas + de cada servidor. En caso de error el servidor tendrá su correspondiente entrada + asignada a &false;. + También puede usar la función <function>memcache_get_extended_stats</function>. + </para> + + <note> + <para> + Esta función fue añadida en la versión 2.0.0. de Memcache. + </para> + </note> + + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>type</parameter></term> + <listitem> + <para> + Tipo de estadísticas a capturar. Valores válidos son {reset, + malloc, maps, cachedump, slabs, items, sizes}. Según la + especificación del protocolo de memcached estos son los + argumentos adicionales "pueden estar sujetos a cambios por + conveniencia de los desarrolladores de memcache". + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>slabid</parameter></term> + <listitem> + <para> + Usado en conjunto con cachedump en el <parameter>type</parameter> + para identificar el slap desde donde volcar. El comando + cachedump va en conjunto con el servidor y debe ser usado + estrictamente para propósitos de depuración. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>limit</parameter></term> + <listitem> + <para> + Usado en conjunto con cachedump en el <parameter>type</parameter> + para limitar el número de entradas a volcar. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Devuelve un array asociativo de dos dimensiones con las estadísticas o &false; + en caso de error. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Ejemplo de <function>Memcache::getExtendedStats</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + $memcache_obj = new Memcache; + $memcache_obj->addServer('memcache_host', 11211); + $memcache_obj->addServer('failed_host', 11211); + + $stats = $memcache_obj->getExtendedStats(); + print_r($stats); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +Array +( + [memcache_host:11211] => Array + ( + [pid] => 3756 + [uptime] => 603011 + [time] => 1133810435 + [version] => 1.1.12 + [rusage_user] => 0.451931 + [rusage_system] => 0.634903 + [curr_items] => 2483 + [total_items] => 3079 + [bytes] => 2718136 + [curr_connections] => 2 + [total_connections] => 807 + [connection_structures] => 13 + [cmd_get] => 9748 + [cmd_set] => 3096 + [get_hits] => 5976 + [get_misses] => 3772 + [bytes_read] => 3448968 + [bytes_written] => 2318883 + [limit_maxbytes] => 33554432 + ) + + [failed_host:11211] => false +) +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>Memcache::getVersion</function></member> + <member><function>Memcache::getStats</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"~/.phpdoc/manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +-->

« previous php.doc.es (#1968) next »