Class Statistic

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

    public class Statistic
    extends Object
    implements org.zkoss.zk.ui.util.Monitor
    Adapted from Statistic
    Author:
    hengsin
    • Constructor Detail

      • Statistic

        public Statistic()
    • Method Detail

      • getStartTime

        public long getStartTime()
        Returns when the server (actually, this monitor) started.
      • getTotalSessionCount

        public long getTotalSessionCount()
        Returns the total number of sessions that have been created since the server started.
      • getActiveSessionCount

        public long getActiveSessionCount()
        Returns the number of active sessions.
      • getAverageSessionCount

        public double getAverageSessionCount()
        Returns the average number of sessions being created in an hour.
      • getTotalDesktopCount

        public long getTotalDesktopCount()
        Returns the total number of desktops that have been created since the server started.
      • getActiveDesktopCount

        public long getActiveDesktopCount()
        Returns the number of active desktops.
      • getAverageDesktopCount

        public double getAverageDesktopCount()
        Returns the average number of desktops being created in an hour.
      • getTotalUpdateCount

        public long getTotalUpdateCount()
        Returns the total number of asynchronous updates that have been received since the server started.
      • getActiveUpdateCount

        public long getActiveUpdateCount()
        Returns the number of active asynchronous updates.
      • getAverageUpdateCount

        public double getAverageUpdateCount()
        Returns the average number of asynchronous updates being created in an hour.
      • sessionCreated

        public void sessionCreated​(org.zkoss.zk.ui.Session sess)
        Specified by:
        sessionCreated in interface org.zkoss.zk.ui.util.Monitor
      • sessionDestroyed

        public void sessionDestroyed​(org.zkoss.zk.ui.Session sess)
        Specified by:
        sessionDestroyed in interface org.zkoss.zk.ui.util.Monitor
      • desktopCreated

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

        public void desktopDestroyed​(org.zkoss.zk.ui.Desktop desktop)
        Specified by:
        desktopDestroyed in interface org.zkoss.zk.ui.util.Monitor
      • beforeUpdate

        public void beforeUpdate​(org.zkoss.zk.ui.Desktop desktop,
                                 List<org.zkoss.zk.au.AuRequest> requests)
        Specified by:
        beforeUpdate in interface org.zkoss.zk.ui.util.Monitor
      • afterUpdate

        public void afterUpdate​(org.zkoss.zk.ui.Desktop desktop)
        Specified by:
        afterUpdate in interface org.zkoss.zk.ui.util.Monitor