Class WebClientStatistics

  • All Implemented Interfaces:
    WebClientStatisticsMBean, org.zkoss.zk.ui.util.Monitor

    public class WebClientStatistics
    extends org.zkoss.zk.ui.util.Statistic
    implements WebClientStatisticsMBean
    A listener that monitors the usage-statistics of the application. This listener must be added to the zk.xml file to activate it.
    • Constructor Detail

      • WebClientStatistics

        public WebClientStatistics()
    • Method Detail

      • desktopCreated

        public void desktopCreated​(org.zkoss.zk.ui.Desktop desktop)
        Specified by:
        desktopCreated in interface org.zkoss.zk.ui.util.Monitor
        Overrides:
        desktopCreated in class org.zkoss.zk.ui.util.Statistic
      • getAverageSessionCount

        public double getAverageSessionCount()
        Specified by:
        getAverageSessionCount in interface WebClientStatisticsMBean
        Overrides:
        getAverageSessionCount in class org.zkoss.zk.ui.util.Statistic
        Returns:
        the average number of Sessions per hour.
      • getAverageDesktopCount

        public double getAverageDesktopCount()
        Specified by:
        getAverageDesktopCount in interface WebClientStatisticsMBean
        Overrides:
        getAverageDesktopCount in class org.zkoss.zk.ui.util.Statistic
        Returns:
        the average number of Desktops per hour.
      • getAverageUpdateCount

        public double getAverageUpdateCount()
        Specified by:
        getAverageUpdateCount in interface WebClientStatisticsMBean
        Overrides:
        getAverageUpdateCount in class org.zkoss.zk.ui.util.Statistic
        Returns:
        the average number of asynchronous updates processed by ZK engine per hour.