Loading Monitors"

From Documentation
(Created page with '{{ZKDevelopersReferencePageHeader}} =Version History= {{LastUpdated}} {| border='1px' | width="100%" ! Version !! Date !! Content |- |   |   |   |} {{ZKDeveloper…')
 
m
Line 1: Line 1:
 
{{ZKDevelopersReferencePageHeader}}
 
{{ZKDevelopersReferencePageHeader}}
 +
 +
To know the loading of an application, you could implement <javadoc type="interface">org.zkoss.zk.ui.util.Monitor</javadoc> to count the number of desktops, sessions and requests.
 +
 +
Once implemented, you could register it by specifying the following in <tt>WEB-INF/zk.xml</tt> (assume the class is called foo.MyStatistic):
 +
 +
<source lang="xml">
 +
<zk>
 +
    <listener>
 +
        <listener-class>foo.MyStatistic</listener-class>
 +
    </listener>
 +
</zk>
 +
</source>
  
 
=Version History=
 
=Version History=

Revision as of 08:39, 29 November 2010

To know the loading of an application, you could implement Monitor to count the number of desktops, sessions and requests.

Once implemented, you could register it by specifying the following in WEB-INF/zk.xml (assume the class is called foo.MyStatistic):

<zk>
    <listener>
        <listener-class>foo.MyStatistic</listener-class>
    </listener>
</zk>

Version History

Last Update : 2010/11/29


Version Date Content
     



Last Update : 2010/11/29

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.