Class WebClientStatistics

java.lang.Object
org.zkoss.zk.ui.util.Statistic
com.saperion.ngc.statistics.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 Details

    • WebClientStatistics

      public WebClientStatistics()
  • Method Details

    • 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
    • getStarted

      public String getStarted()
      Specified by:
      getStarted in interface WebClientStatisticsMBean
      Returns:
      the time when the application was started.
    • 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.