Loading Monitors"

From Documentation
(Created page with '{{ZKDevelopersReferencePageHeader}} =Version History= {{LastUpdated}} {| border='1px' | width="100%" ! Version !! Date !! Content |- |   |   |   |} {{ZKDeveloper…')
 
m (remove empty version history (via JWB))
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{ZKDevelopersReferencePageHeader}}
 
{{ZKDevelopersReferencePageHeader}}
  
=Version History=
+
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.
{{LastUpdated}}
+
 
{| border='1px' | width="100%"
+
Once implemented, you could register it by specifying the following in <code>WEB-INF/zk.xml</code> (assume the class is called foo.MyStatistic):
! Version !! Date !! Content
+
 
|-
+
<source lang="xml">
| &nbsp;
+
<zk>
| &nbsp;
+
    <listener>
| &nbsp;
+
        <listener-class>foo.MyStatistic</listener-class>
|}
+
    </listener>
 +
</zk>
 +
</source>
 +
 
 +
 
  
 
{{ZKDevelopersReferencePageFooter}}
 
{{ZKDevelopersReferencePageFooter}}

Latest revision as of 10:23, 5 February 2024

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>




Last Update : 2024/02/05

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