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 Constructor Description WebClientStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddesktopCreated(org.zkoss.zk.ui.Desktop desktop)doublegetAverageDesktopCount()doublegetAverageSessionCount()doublegetAverageUpdateCount()java.lang.StringgetStarted()-
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
-
-
-
-
Method Detail
-
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
public java.lang.String 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.
-
-