Loading Monitors"
From Documentation
m ((via JWB)) |
m (replace tt with code (via JWB)) |
||
Line 3: | Line 3: | ||
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. | 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 < | + | 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"> | <source lang="xml"> |
Revision as of 14:14, 12 January 2022
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
Version | Date | Content |
---|---|---|