Package com.saperion.ngc.statistics
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
desktopCreated
(org.zkoss.zk.ui.Desktop desktop) double
double
double
Methods inherited from class org.zkoss.zk.ui.util.Statistic
afterUpdate, beforeUpdate, desktopDestroyed, getActiveDesktopCount, getActiveSessionCount, getActiveUpdateCount, getStartTime, getTotalDesktopCount, getTotalSessionCount, getTotalUpdateCount, sessionCreated, sessionDestroyed
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.saperion.ngc.statistics.WebClientStatisticsMBean
getActiveDesktopCount, getActiveSessionCount, getActiveUpdateCount, getTotalDesktopCount, getTotalSessionCount, getTotalUpdateCount
-
Constructor Details
-
WebClientStatistics
public WebClientStatistics()
-
-
Method Details
-
desktopCreated
public void desktopCreated(org.zkoss.zk.ui.Desktop desktop) - Specified by:
desktopCreated
in interfaceorg.zkoss.zk.ui.util.Monitor
- Overrides:
desktopCreated
in classorg.zkoss.zk.ui.util.Statistic
-
getStarted
- Specified by:
getStarted
in interfaceWebClientStatisticsMBean
- Returns:
- the time when the application was started.
-
getAverageSessionCount
public double getAverageSessionCount()- Specified by:
getAverageSessionCount
in interfaceWebClientStatisticsMBean
- Overrides:
getAverageSessionCount
in classorg.zkoss.zk.ui.util.Statistic
- Returns:
- the average number of
Session
s per hour.
-
getAverageDesktopCount
public double getAverageDesktopCount()- Specified by:
getAverageDesktopCount
in interfaceWebClientStatisticsMBean
- Overrides:
getAverageDesktopCount
in classorg.zkoss.zk.ui.util.Statistic
- Returns:
- the average number of
Desktop
s per hour.
-
getAverageUpdateCount
public double getAverageUpdateCount()- Specified by:
getAverageUpdateCount
in interfaceWebClientStatisticsMBean
- Overrides:
getAverageUpdateCount
in classorg.zkoss.zk.ui.util.Statistic
- Returns:
- the average number of asynchronous updates processed by ZK engine per hour.
-