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 TypeMethodDescriptionvoiddesktopCreated(org.zkoss.zk.ui.Desktop desktop) doubledoubledoubleMethods inherited from class org.zkoss.zk.ui.util.Statistic
afterUpdate, beforeUpdate, desktopDestroyed, getActiveDesktopCount, getActiveSessionCount, getActiveUpdateCount, getStartTime, getTotalDesktopCount, getTotalSessionCount, getTotalUpdateCount, sessionCreated, sessionDestroyedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
desktopCreatedin interfaceorg.zkoss.zk.ui.util.Monitor- Overrides:
desktopCreatedin classorg.zkoss.zk.ui.util.Statistic
-
getStarted
- Specified by:
getStartedin interfaceWebClientStatisticsMBean- Returns:
- the time when the application was started.
-
getAverageSessionCount
public double getAverageSessionCount()- Specified by:
getAverageSessionCountin interfaceWebClientStatisticsMBean- Overrides:
getAverageSessionCountin classorg.zkoss.zk.ui.util.Statistic- Returns:
- the average number of
Sessions per hour.
-
getAverageDesktopCount
public double getAverageDesktopCount()- Specified by:
getAverageDesktopCountin interfaceWebClientStatisticsMBean- Overrides:
getAverageDesktopCountin classorg.zkoss.zk.ui.util.Statistic- Returns:
- the average number of
Desktops per hour.
-
getAverageUpdateCount
public double getAverageUpdateCount()- Specified by:
getAverageUpdateCountin interfaceWebClientStatisticsMBean- Overrides:
getAverageUpdateCountin classorg.zkoss.zk.ui.util.Statistic- Returns:
- the average number of asynchronous updates processed by ZK engine per hour.
-