Module: sip-router Branch: master Commit: 64e39dbf89bc1581722abeaadf7811e0883390bd URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=64e39dbf...
Author: Elena-Ramona Modroiu ramona@asipto.com Committer: Elena-Ramona Modroiu ramona@asipto.com Date: Mon Aug 19 17:43:16 2013 +0200
htable: updated readme with rpc command htable.stats
---
modules/htable/README | 20 +++++++++++++++++++- modules/htable/doc/htable_admin.xml | 29 ++++++++++++++++++++++++++++- 2 files changed, 47 insertions(+), 2 deletions(-)
diff --git a/modules/htable/README b/modules/htable/README index fe0c37f..45e45af 100644 --- a/modules/htable/README +++ b/modules/htable/README @@ -70,6 +70,7 @@ Alex Balashov 7.5. htable.dump htable 7.6. htable.reload htable 7.7. htable.listTables + 7.8. htable.stats
8. Event routes
@@ -147,6 +148,7 @@ Chapter 1. Admin Guide 7.5. htable.dump htable 7.6. htable.reload htable 7.7. htable.listTables + 7.8. htable.stats
8. Event routes
@@ -594,6 +596,7 @@ sht_unlock("ha=>test"); 7.5. htable.dump htable 7.6. htable.reload htable 7.7. htable.listTables + 7.8. htable.stats
7.1. htable.get htable key
@@ -693,7 +696,7 @@ kamcmd htable.reload ipban
Lists all defined tables
- Name: dhtable.listTables + Name: htable.listTables
Parameters: * None @@ -703,6 +706,21 @@ kamcmd htable.reload ipban kamcmd htable.listTables ...
+7.8. htable.stats + + Get statistics for hash tables - name, number of slots, number of + items, max number of items per slot, min number of items per slot. + + Name: htable.stats + + Parameters: + * None + + Example: +... +kamcmd htable.stats +... + 8. Event routes
8.1. htable:mod-init diff --git a/modules/htable/doc/htable_admin.xml b/modules/htable/doc/htable_admin.xml index 3331bff..815d16b 100644 --- a/modules/htable/doc/htable_admin.xml +++ b/modules/htable/doc/htable_admin.xml @@ -891,7 +891,7 @@ kamcmd htable.reload ipban Lists all defined tables </para> <para> - Name: <emphasis>dhtable.listTables</emphasis> + Name: <emphasis>htable.listTables</emphasis> </para> <para>Parameters:</para> <itemizedlist> @@ -908,6 +908,33 @@ kamcmd htable.listTables ... </programlisting> </section> + <section> + <title> + <function moreinfo="none">htable.stats</function> + </title> + <para> + Get statistics for hash tables - name, number of slots, + number of items, max number of items per slot, min number + of items per slot. + </para> + <para> + Name: <emphasis>htable.stats</emphasis> + </para> + <para>Parameters:</para> + <itemizedlist> + <listitem><para>None</para> + </listitem> + + </itemizedlist> + <para> + Example: + </para> +<programlisting format="linespecific"> +... +kamcmd htable.stats +... +</programlisting> + </section>
</section><!-- RPC commands -->