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}} | ||
− | = | + | 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 <code>WEB-INF/zk.xml</code> (assume the class is called foo.MyStatistic): | |
− | + | ||
− | + | <source lang="xml"> | |
− | + | <zk> | |
− | + | <listener> | |
− | + | <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>